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

Unified Diff: ui/gfx/display.h

Issue 11140006: Fix code around display overscan settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months 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
Index: ui/gfx/display.h
diff --git a/ui/gfx/display.h b/ui/gfx/display.h
index 5abe1be2cbc8a78c16a33b5da44c9695a323ddc3..a3784ee0c3a6a1e0647533d75797e20bbdf0d47e 100644
--- a/ui/gfx/display.h
+++ b/ui/gfx/display.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/base/ui_export.h"
+#include "ui/gfx/insets.h"
#include "ui/gfx/rect.h"
namespace gfx {
@@ -74,6 +75,8 @@ class UI_EXPORT Display {
// |work_area_insets| and the bounds.
void UpdateWorkAreaFromInsets(const gfx::Insets& work_area_insets);
+ void SetOverscanInsets(const gfx::Insets& insets);
+
// Returns the display's size in pixel coordinates.
gfx::Size GetSizeInPixel() const;
@@ -99,6 +102,7 @@ class UI_EXPORT Display {
#if defined(USE_AURA)
Rect bounds_in_pixel_;
#endif
+ Insets overscan_insets_;
float device_scale_factor_;
};

Powered by Google App Engine
This is Rietveld 408576698