Struct cdp::page::SetDeviceMetricsOverrideCommand [] [src]

pub struct SetDeviceMetricsOverrideCommand {
    pub width: i32,
    pub height: i32,
    pub device_scale_factor: f64,
    pub mobile: bool,
    pub scale: Option<f64>,
    pub screen_width: Option<i32>,
    pub screen_height: Option<i32>,
    pub position_x: Option<i32>,
    pub position_y: Option<i32>,
    pub dont_set_visible_size: Option<bool>,
    pub screen_orientation: Option<ScreenOrientation>,
}

[Experimental] Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results).

Command Page.setDeviceMetricsOverride

Domain Module: cdp::page
Command Struct: cdp::page::SetDeviceMetricsOverrideCommand
Response Struct: cdp::page::SetDeviceMetricsOverrideResponse

Fields

Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.

Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.

Overriding device scale factor value. 0 disables the override.

Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.

Scale to apply to resulting view image. Ignored in |fitWindow| mode.

Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|.

Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|.

Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|.

Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|.

Do not set visible view size, rely upon explicit setVisibleSize call.

Screen orientation override.

Trait Implementations

impl Clone for SetDeviceMetricsOverrideCommand
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for SetDeviceMetricsOverrideCommand
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for SetDeviceMetricsOverrideCommand
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl CdpCommand for SetDeviceMetricsOverrideCommand
[src]

COMMAND_NAME: &'static str = "Page.setDeviceMetricsOverride"

impl SerializeCdpCommand for SetDeviceMetricsOverrideCommand
[src]

[src]

[src]

impl<'de> DeserializeCdpCommand<'de> for SetDeviceMetricsOverrideCommand
[src]

[src]

impl<'b> HasCdpResponse<'b> for SetDeviceMetricsOverrideCommand
[src]