| Index: ui/display/mojo/display_struct_traits.h
|
| diff --git a/ui/display/mojo/display_struct_traits.h b/ui/display/mojo/display_struct_traits.h
|
| index a3176f9d1d8b4aa1256ded0cd6aca06f6d35ed88..00009ed7ceeb496fa81c09ce221e79bbcc6fe73f 100644
|
| --- a/ui/display/mojo/display_struct_traits.h
|
| +++ b/ui/display/mojo/display_struct_traits.h
|
| @@ -35,6 +35,10 @@ struct StructTraits<display::mojom::DisplayDataView, display::Display> {
|
| return display.bounds();
|
| }
|
|
|
| + static gfx::Size size_in_pixels(const display::Display& display) {
|
| + return display.GetSizeInPixel();
|
| + }
|
| +
|
| static const gfx::Rect& work_area(const display::Display& display) {
|
| return display.work_area();
|
| }
|
| @@ -56,6 +60,18 @@ struct StructTraits<display::mojom::DisplayDataView, display::Display> {
|
| return display.maximum_cursor_size();
|
| }
|
|
|
| + static int32_t color_depth(const display::Display& display) {
|
| + return display.color_depth();
|
| + }
|
| +
|
| + static int32_t depth_per_component(const display::Display& display) {
|
| + return display.depth_per_component();
|
| + }
|
| +
|
| + static bool is_monochrome(const display::Display& display) {
|
| + return display.is_monochrome();
|
| + }
|
| +
|
| static bool Read(display::mojom::DisplayDataView data, display::Display* out);
|
| };
|
|
|
|
|