summaryrefslogtreecommitdiffstats
path: root/ui/gfx/display.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/display.h')
-rw-r--r--ui/gfx/display.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/gfx/display.h b/ui/gfx/display.h
index 81963f2..4df69b7 100644
--- a/ui/gfx/display.h
+++ b/ui/gfx/display.h
@@ -88,6 +88,13 @@ class UI_EXPORT Display {
// Returns the display's size in pixel coordinates.
gfx::Size GetSizeInPixel() const;
+#if defined(USE_AURA)
+ // TODO(oshima|skuhne): Eliminate the use of bounds_in_pixel in events_x.cc
+ // and remove bounds_in_pixel from gfx::Display.
+ // Returns the display's bounds in pixel coordinates.
+ const Rect& bounds_in_pixel() const { return bounds_in_pixel_; }
+#endif
+
// Returns a string representation of the display;
std::string ToString() const;
@@ -107,6 +114,9 @@ class UI_EXPORT Display {
int64 id_;
Rect bounds_;
Rect work_area_;
+#if defined(USE_AURA)
+ Rect bounds_in_pixel_;
+#endif
float device_scale_factor_;
};