chromiumoxide_fork/handler/
viewport.rs

1#[derive(Debug, Clone)]
2pub struct Viewport {
3    pub width: u32,
4    pub height: u32,
5    pub device_scale_factor: Option<f64>,
6    pub emulating_mobile: bool,
7    pub is_landscape: bool,
8    pub has_touch: bool,
9}
10
11impl Default for Viewport {
12    fn default() -> Self {
13        Viewport {
14            width: 800,
15            height: 600,
16            device_scale_factor: None,
17            emulating_mobile: false,
18            is_landscape: false,
19            has_touch: false,
20        }
21    }
22}