(bridge: &NativeBridge, udid: &str, normalized: bool)
| 150 | } |
| 151 | |
| 152 | fn gesture_surface_size(bridge: &NativeBridge, udid: &str, normalized: bool) -> (f64, f64) { |
| 153 | if normalized { |
| 154 | return (1.0, 1.0); |
| 155 | } |
| 156 | accessibility_root_size(bridge, udid) |
| 157 | .or_else(|| chrome_screen_size(bridge, udid)) |
| 158 | .unwrap_or((390.0, 844.0)) |
| 159 | } |
| 160 | |
| 161 | fn parse_key_list(value: &str) -> Result<Vec<u16>, crate::error::AppError> { |
| 162 | let mut keys = Vec::new(); |
no test coverage detected