summaryrefslogtreecommitdiffstats
path: root/ash/display/screen_ash.h
diff options
context:
space:
mode:
authormlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-22 01:26:01 +0000
committermlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-22 01:26:01 +0000
commit0c5703d1a2552eb3d15a7c589f34e3acb6bfc881 (patch)
tree0ad7e6718c9e33056f316ad099bcd3602be8c9d4 /ash/display/screen_ash.h
parent2418349939b669d4b6b626ad18b67dba6862ac24 (diff)
downloadchromium_src-0c5703d1a2552eb3d15a7c589f34e3acb6bfc881.zip
chromium_src-0c5703d1a2552eb3d15a7c589f34e3acb6bfc881.tar.gz
chromium_src-0c5703d1a2552eb3d15a7c589f34e3acb6bfc881.tar.bz2
Add OnDisplayMetricsChanged in DisplayObserver.
This replaces OnDisplayBoundsChanged and add a MetricsType parameter so consumers can now which metrics has changed. The current set of MetricsType include bounds, workarea and rotation. BUG=162827 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271768 Review URL: https://codereview.chromium.org/259253002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272040 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/display/screen_ash.h')
-rw-r--r--ash/display/screen_ash.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ash/display/screen_ash.h b/ash/display/screen_ash.h
index 08011b2..c5f4b85 100644
--- a/ash/display/screen_ash.h
+++ b/ash/display/screen_ash.h
@@ -8,6 +8,7 @@
#include "ash/ash_export.h"
#include "base/compiler_specific.h"
#include "base/observer_list.h"
+#include "ui/gfx/display_observer.h"
#include "ui/gfx/screen.h"
namespace gfx {
@@ -81,7 +82,7 @@ class ASH_EXPORT ScreenAsh : public gfx::Screen {
friend class DisplayManager;
// Notifies observers of display configuration changes.
- void NotifyBoundsChanged(const gfx::Display& display);
+ void NotifyMetricsChanged(const gfx::Display& display, uint32_t metrics);
void NotifyDisplayAdded(const gfx::Display& display);
void NotifyDisplayRemoved(const gfx::Display& display);