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

Unified Diff: ui/aura/env.h

Issue 9808010: Keep the mouse cursor within desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 9 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
« no previous file with comments | « ui/aura/dispatcher_win.cc ('k') | ui/aura/env.cc » ('j') | ui/aura/env.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/env.h
diff --git a/ui/aura/env.h b/ui/aura/env.h
index 4089bff79c877fba5c18e1a504ccf5cafa059a40..033456561f3dc2451bd78d50b9c5fb07dad52487 100644
--- a/ui/aura/env.h
+++ b/ui/aura/env.h
@@ -15,18 +15,16 @@
namespace aura {
class EnvObserver;
-class MonitorChangeObserverX11;
class MonitorManager;
class Window;
-#if !defined(OS_MACOSX)
-class Dispatcher : public MessageLoop::Dispatcher {
- public:
- virtual ~Dispatcher() {}
-};
+namespace internal {
+class MonitorChangeObserverX11;
+}
+#if !defined(OS_MACOSX)
// Creates a platform-specific native event dispatcher.
-Dispatcher* CreateDispatcher();
+MessageLoop::Dispatcher* CreateDispatcher();
#endif
// A singleton object that tracks general state within Aura.
@@ -52,12 +50,6 @@ class AURA_EXPORT Env {
stacking_client_ = stacking_client;
}
-#if defined(USE_X11)
- MonitorChangeObserverX11* monitor_change_observer() {
- return monitor_change_observer_.get();
- }
-#endif
-
// Gets/sets MonitorManager. The MonitorManager's ownership is
// transfered.
MonitorManager* monitor_manager() { return monitor_manager_.get(); }
@@ -74,12 +66,14 @@ class AURA_EXPORT Env {
private:
friend class Window;
+ void Init();
+
// Called by the Window when it is initialized. Notifies observers.
void NotifyWindowInitialized(Window* window);
ObserverList<EnvObserver> observers_;
#if !defined(OS_MACOSX)
- scoped_ptr<Dispatcher> dispatcher_;
+ scoped_ptr<MessageLoop::Dispatcher> dispatcher_;
#endif
static Env* instance_;
@@ -88,7 +82,7 @@ class AURA_EXPORT Env {
scoped_ptr<MonitorManager> monitor_manager_;
#if defined(USE_X11)
- scoped_ptr<MonitorChangeObserverX11> monitor_change_observer_;
+ scoped_ptr<internal::MonitorChangeObserverX11> monitor_change_observer_;
#endif
DISALLOW_COPY_AND_ASSIGN(Env);
« no previous file with comments | « ui/aura/dispatcher_win.cc ('k') | ui/aura/env.cc » ('j') | ui/aura/env.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698