Struct chrome_remote_interface_model::emulation::SetDeviceMetricsOverrideCommand [−][src]
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]
Scale to apply to resulting view image.
pub fn screen_width(&self) -> Option<&u32>[src]
Overriding screen width value in pixels (minimum 0, maximum 10000000).
pub fn screen_height(&self) -> Option<&u32>[src]
Overriding screen height value in pixels (minimum 0, maximum 10000000).
pub fn position_x(&self) -> Option<&u32>[src]
Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
pub fn position_y(&self) -> Option<&u32>[src]
Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
pub fn dont_set_visible_size(&self) -> Option<&bool>[src]
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]
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]
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]
fn clone(&self) -> SetDeviceMetricsOverrideCommand[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Command for SetDeviceMetricsOverrideCommand[src]
type Return = SetDeviceMetricsOverrideReturn
Return type.
const METHOD: &'static str[src]
fn into_request(self, session_id: Option<SessionId>, id: u32) -> Request<Self> where
Self: Sized, [src]
Self: Sized,
impl Debug for SetDeviceMetricsOverrideCommand[src]
impl<'de> Deserialize<'de> for SetDeviceMetricsOverrideCommand[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for SetDeviceMetricsOverrideCommand[src]
Auto Trait Implementations
impl RefUnwindSafe for SetDeviceMetricsOverrideCommand[src]
impl Send for SetDeviceMetricsOverrideCommand[src]
impl Sync for SetDeviceMetricsOverrideCommand[src]
impl Unpin for SetDeviceMetricsOverrideCommand[src]
impl UnwindSafe for SetDeviceMetricsOverrideCommand[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,