(&self, id: &str)
| 684 | } |
| 685 | |
| 686 | pub fn chrome_profile(&self, id: &str) -> Result<Value, AppError> { |
| 687 | let serial = self.serial_for_id(id)?; |
| 688 | let metrics = self.display_metrics_for_serial(&serial)?; |
| 689 | let width = metrics.width; |
| 690 | let height = metrics.height; |
| 691 | let radii = metrics.corner_radii; |
| 692 | Ok(json!({ |
| 693 | "totalWidth": width, |
| 694 | "totalHeight": height, |
| 695 | "screenX": 0, |
| 696 | "screenY": 0, |
| 697 | "screenWidth": width, |
| 698 | "screenHeight": height, |
| 699 | "cornerRadius": radii.max(), |
| 700 | "cornerRadii": { |
| 701 | "topLeft": radii.top_left, |
| 702 | "topRight": radii.top_right, |
| 703 | "bottomRight": radii.bottom_right, |
| 704 | "bottomLeft": radii.bottom_left, |
| 705 | }, |
| 706 | "hasScreenMask": false, |
| 707 | })) |
| 708 | } |
| 709 | |
| 710 | pub fn shared_video_frame_stream( |
| 711 | &self, |
no test coverage detected