1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.
//! Defines commands and events for browser extensions.
//!
//! Method names for the `Extensions` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.
/// Runs an extension default action.
///
/// Parameters:
/// - `id`: string
/// - `targetId`: string
pub const TRIGGER_ACTION: &str = "Extensions.triggerAction";
/// Installs an unpacked extension from the filesystem similar to
/// --load-extension CLI flags. Returns extension ID once the extension has
/// been installed.
///
/// Parameters:
/// - `path`: string
/// - `enableInIncognito`: boolean (optional)
///
/// Returns: `id`
pub const LOAD_UNPACKED: &str = "Extensions.loadUnpacked";
/// Gets a list of all unpacked extensions.
///
/// Returns: `extensions`
pub const GET_EXTENSIONS: &str = "Extensions.getExtensions";
/// Uninstalls an unpacked extension (others not supported) from the profile.
///
/// Parameters:
/// - `id`: string
pub const UNINSTALL: &str = "Extensions.uninstall";
/// Gets data from extension storage in the given `storageArea`. If `keys` is
/// specified, these are used to filter the result.
///
/// Parameters:
/// - `id`: string
/// - `storageArea`: StorageArea
/// - `keys`: array (optional)
///
/// Returns: `data`
pub const GET_STORAGE_ITEMS: &str = "Extensions.getStorageItems";
/// Removes `keys` from extension storage in the given `storageArea`.
///
/// Parameters:
/// - `id`: string
/// - `storageArea`: StorageArea
/// - `keys`: array
pub const REMOVE_STORAGE_ITEMS: &str = "Extensions.removeStorageItems";
/// Clears extension storage in the given `storageArea`.
///
/// Parameters:
/// - `id`: string
/// - `storageArea`: StorageArea
pub const CLEAR_STORAGE_ITEMS: &str = "Extensions.clearStorageItems";
/// Sets `values` in extension storage in the given `storageArea`. The
/// provided `values` will be merged with existing values in the storage area.
///
/// Parameters:
/// - `id`: string
/// - `storageArea`: StorageArea
/// - `values`: object
pub const SET_STORAGE_ITEMS: &str = "Extensions.setStorageItems";