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

Unified Diff: ui/aura/monitor_change_observer_x11.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
Index: ui/aura/monitor_change_observer_x11.h
diff --git a/ui/aura/monitor_change_observer_x11.h b/ui/aura/monitor_change_observer_x11.h
index 1c4a323f10f7949c6a4047d5ba739b3b81d1c7ad..f9a9ecd684b20548c7c76ab8e405d763834a469e 100644
--- a/ui/aura/monitor_change_observer_x11.h
+++ b/ui/aura/monitor_change_observer_x11.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_AURA_MONITOR_CHANGE_OBSERVER_H
-#define UI_AURA_MONITOR_CHANGE_OBSERVER_H
+#ifndef UI_AURA_MONITOR_CHANGE_OBSERVER_X11_H
+#define UI_AURA_MONITOR_CHANGE_OBSERVER_X11_H
#pragma once
#include <X11/Xlib.h>
@@ -12,18 +12,21 @@
#undef RootWindow
#include "base/basictypes.h"
-#include "ui/aura/aura_export.h"
+#include "base/message_loop.h"
namespace aura {
+namespace internal {
// An object that observes changes in monitor configuration and
// update MonitorManagers.
-class AURA_EXPORT MonitorChangeObserverX11 {
+class MonitorChangeObserverX11 : public MessageLoop::Dispatcher {
public:
MonitorChangeObserverX11();
~MonitorChangeObserverX11();
- bool Dispatch(const XEvent* event);
+ // Overridden from Dispatcher overrides:
+ virtual base::MessagePumpDispatcher::DispatchStatus Dispatch(
+ XEvent* xev) OVERRIDE;
// Reads monitor configurations from the system and notifies
// |monitor_manager_| about the change.
@@ -39,6 +42,7 @@ class AURA_EXPORT MonitorChangeObserverX11 {
DISALLOW_COPY_AND_ASSIGN(MonitorChangeObserverX11);
};
+} // namespace internal
} // namespace aura
-#endif // UI_AURA_MONITOR_CHANGE_OBSERVER_H
+#endif // UI_AURA_MONITOR_CHANGE_OBSERVER_X11_H
« ui/aura/env.cc ('K') | « ui/aura/env.cc ('k') | ui/aura/monitor_change_observer_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698