(bridge: &NativeBridge, udid: &str)
| 5812 | } |
| 5813 | |
| 5814 | fn chrome_screen_size(bridge: &NativeBridge, udid: &str) -> Option<(f64, f64)> { |
| 5815 | let profile = bridge.chrome_profile(udid).ok()?; |
| 5816 | let width = profile.screen_width; |
| 5817 | let height = profile.screen_height; |
| 5818 | (width > 0.0 && height > 0.0).then_some((width, height)) |
| 5819 | } |
| 5820 | |
| 5821 | fn lerp(start: f64, end: f64, t: f64) -> f64 { |
| 5822 | start + (end - start) * t |
no test coverage detected