chromiumoxide/handler/viewport.rs
#[derive(Debug, Clone)]
pub struct Viewport {
pub width: u32,
pub height: u32,
pub device_scale_factor: Option<f64>,
pub emulating_mobile: bool,
pub is_landscape: bool,
pub has_touch: bool,
}
impl Default for Viewport {
fn default() -> Self {
Viewport {
width: 800,
height: 600,
device_scale_factor: None,
emulating_mobile: false,
is_landscape: false,
has_touch: false,
}
}
}