| Index: services/ui/display/viewport_metrics.h
|
| diff --git a/services/ui/display/viewport_metrics.h b/services/ui/display/viewport_metrics.h
|
| index b8be4f00989c5dbce0dc41203aa95e37273a54df..35daf31b203b5d3ef812a89da50574a9482cfc17 100644
|
| --- a/services/ui/display/viewport_metrics.h
|
| +++ b/services/ui/display/viewport_metrics.h
|
| @@ -18,13 +18,17 @@ struct ViewportMetrics {
|
| gfx::Rect work_area; // DIP.
|
| gfx::Size pixel_size;
|
| Display::Rotation rotation = Display::ROTATE_0;
|
| + Display::TouchSupport touch_support = Display::TOUCH_SUPPORT_UNKNOWN;
|
| float device_scale_factor = 0.0f;
|
| + float ui_scale_factor = 0.0f;
|
| };
|
|
|
| inline bool operator==(const ViewportMetrics& lhs, const ViewportMetrics& rhs) {
|
| return lhs.bounds == rhs.bounds && lhs.work_area == rhs.work_area &&
|
| lhs.pixel_size == rhs.pixel_size && lhs.rotation == rhs.rotation &&
|
| - lhs.device_scale_factor == rhs.device_scale_factor;
|
| + lhs.touch_support == rhs.touch_support &&
|
| + lhs.device_scale_factor == rhs.device_scale_factor &&
|
| + lhs.ui_scale_factor == rhs.ui_scale_factor;
|
| }
|
|
|
| inline bool operator!=(const ViewportMetrics& lhs, const ViewportMetrics& rhs) {
|
|
|