Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1650)

Unified Diff: services/ui/display/viewport_metrics.h

Issue 2476663003: PlatformScreenOzone using DisplayManager (Closed)
Patch Set: Add missing data_dep. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/display/screen_manager_ozone_unittests.cc ('k') | services/ui/display/viewport_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..063f9e6f07234035bdf8a308bba19aa96935c609 100644
--- a/services/ui/display/viewport_metrics.h
+++ b/services/ui/display/viewport_metrics.h
@@ -5,6 +5,8 @@
#ifndef SERVICES_UI_DISPLAY_VIEWPORT_METRICS_H_
#define SERVICES_UI_DISPLAY_VIEWPORT_METRICS_H_
+#include <string>
+
#include "ui/display/display.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
@@ -18,13 +20,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) {
« no previous file with comments | « services/ui/display/screen_manager_ozone_unittests.cc ('k') | services/ui/display/viewport_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698