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
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.
//! A domain for interacting with Cast, Presentation API, and Remote Playback
//! API functionalities.
//!
//! Method names for the `Cast` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.
/// Starts observing for sinks that can be used for tab mirroring, and if set,
/// sinks compatible with |presentationUrl| as well. When sinks are found, a
/// |sinksUpdated| event is fired. Also starts observing for issue messages.
/// When an issue is added or removed, an |issueUpdated| event is fired.
///
/// Parameters:
/// - `presentationUrl`: string (optional)
pub const ENABLE: &str = "Cast.enable";
/// Stops observing for sinks and issues.
pub const DISABLE: &str = "Cast.disable";
/// Sets a sink to be used when the web page requests the browser to choose a
/// sink via Presentation API, Remote Playback API, or Cast SDK.
///
/// Parameters:
/// - `sinkName`: string
pub const SET_SINK_TO_USE: &str = "Cast.setSinkToUse";
/// Starts mirroring the desktop to the sink.
///
/// Parameters:
/// - `sinkName`: string
pub const START_DESKTOP_MIRRORING: &str = "Cast.startDesktopMirroring";
/// Starts mirroring the tab to the sink.
///
/// Parameters:
/// - `sinkName`: string
pub const START_TAB_MIRRORING: &str = "Cast.startTabMirroring";
/// Stops the active Cast session on the sink.
///
/// Parameters:
/// - `sinkName`: string
pub const STOP_CASTING: &str = "Cast.stopCasting";