cdp_driver/methods/fed_cm.rs
1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! This domain allows interacting with the FedCM dialog.
5//!
6//! Method names for the `FedCm` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8//!
9//! This domain is experimental and may change without notice.
10
11/// `FedCm.enable`
12///
13/// Parameters:
14/// - `disableRejectionDelay`: boolean (optional)
15pub const ENABLE: &str = "FedCm.enable";
16
17/// `FedCm.disable`
18pub const DISABLE: &str = "FedCm.disable";
19
20/// `FedCm.selectAccount`
21///
22/// Parameters:
23/// - `dialogId`: string
24/// - `accountIndex`: integer
25pub const SELECT_ACCOUNT: &str = "FedCm.selectAccount";
26
27/// `FedCm.clickDialogButton`
28///
29/// Parameters:
30/// - `dialogId`: string
31/// - `dialogButton`: DialogButton
32pub const CLICK_DIALOG_BUTTON: &str = "FedCm.clickDialogButton";
33
34/// `FedCm.openUrl`
35///
36/// Parameters:
37/// - `dialogId`: string
38/// - `accountIndex`: integer
39/// - `accountUrlType`: AccountUrlType
40pub const OPEN_URL: &str = "FedCm.openUrl";
41
42/// `FedCm.dismissDialog`
43///
44/// Parameters:
45/// - `dialogId`: string
46/// - `triggerCooldown`: boolean (optional)
47pub const DISMISS_DIALOG: &str = "FedCm.dismissDialog";
48
49/// Resets the cooldown time, if any, to allow the next FedCM call to show a
50/// dialog even if one was recently dismissed by the user.
51pub const RESET_COOLDOWN: &str = "FedCm.resetCooldown";