Struct chrome_remote_interface_model::emulation::SetDeviceMetricsOverrideCommand[][src]

pub struct SetDeviceMetricsOverrideCommand { /* fields omitted */ }
This is supported on crate features Emulation and DOM and Page and Runtime only.

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).

Implementations

impl SetDeviceMetricsOverrideCommand[src]

pub fn builder() -> SetDeviceMetricsOverrideCommandBuilder[src]

pub fn width(&self) -> u32[src]

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

pub fn height(&self) -> u32[src]

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

pub fn device_scale_factor(&self) -> f64[src]

Overriding device scale factor value. 0 disables the override.

pub fn mobile(&self) -> bool[src]

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

pub fn scale(&self) -> Option<&f64>[src]

This is supported on crate feature experimental only.

Scale to apply to resulting view image.

pub fn screen_width(&self) -> Option<&u32>[src]

This is supported on crate feature experimental only.

Overriding screen width value in pixels (minimum 0, maximum 10000000).

pub fn screen_height(&self) -> Option<&u32>[src]

This is supported on crate feature experimental only.

Overriding screen height value in pixels (minimum 0, maximum 10000000).

pub fn position_x(&self) -> Option<&u32>[src]

This is supported on crate feature experimental only.

Overriding view X position on screen in pixels (minimum 0, maximum 10000000).

pub fn position_y(&self) -> Option<&u32>[src]

This is supported on crate feature experimental only.

Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).

pub fn dont_set_visible_size(&self) -> Option<&bool>[src]

This is supported on crate feature experimental only.

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

pub fn screen_orientation(&self) -> Option<&ScreenOrientation>[src]

Screen orientation override.

pub fn viewport(&self) -> Option<&Viewport>[src]

This is supported on crate feature experimental only.

If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions.

pub fn display_feature(&self) -> Option<&DisplayFeature>[src]

This is supported on crate feature experimental only.

If set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off.

Trait Implementations

impl Clone for SetDeviceMetricsOverrideCommand[src]

impl Command for SetDeviceMetricsOverrideCommand[src]

type Return = SetDeviceMetricsOverrideReturn

Return type.

impl Debug for SetDeviceMetricsOverrideCommand[src]

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

impl Serialize for SetDeviceMetricsOverrideCommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.