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

Unified Diff: ui/gfx/screen.h

Issue 11363124: Move DisplayManager and DisplayChangeObserverX11 from aura to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix rebase Created 8 years, 1 month 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 | « ui/gfx/display_observer.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/screen.h
diff --git a/ui/gfx/screen.h b/ui/gfx/screen.h
index 1a04214395283a286e4fc9fd06ca5990f5fd949e..9410d028889bb4cadaafa37039159030171acc17 100644
--- a/ui/gfx/screen.h
+++ b/ui/gfx/screen.h
@@ -13,6 +13,7 @@
#include "ui/gfx/screen_type_delegate.h"
namespace gfx {
+class DisplayObserver;
class Rect;
// A utility class for getting various info about screen size, displays,
@@ -70,6 +71,10 @@ class UI_EXPORT Screen {
// Returns the primary display.
virtual gfx::Display GetPrimaryDisplay() const = 0;
+ // Adds/Removes display observers.
+ virtual void AddObserver(DisplayObserver* observer) = 0;
+ virtual void RemoveObserver(DisplayObserver* observer) = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(Screen);
};
« no previous file with comments | « ui/gfx/display_observer.cc ('k') | ui/gfx/screen_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698