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

Unified Diff: ui/aura/root_window_host_linux.h

Issue 9808010: Keep the mouse cursor within desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/root_window_host_linux.h
diff --git a/ui/aura/root_window_host_linux.h b/ui/aura/root_window_host_linux.h
index 5b4c96a1b0b3c5cd5fee5c844c4ef5183620a58c..cbdcdb2b59c477b3f0829a587146a6319ef5dad5 100644
--- a/ui/aura/root_window_host_linux.h
+++ b/ui/aura/root_window_host_linux.h
@@ -12,18 +12,21 @@
#undef RootWindow
#include "base/message_loop.h"
+#include "base/memory/scoped_ptr.h"
Daniel Erat 2012/03/23 16:49:16 nit: fix alphabetization
oshima 2012/03/23 18:25:09 Done.
#include "ui/aura/root_window_host.h"
#include "ui/gfx/rect.h"
namespace aura {
-class RootWindowHostLinux : public RootWindowHost {
+class RootWindowHostLinux : public RootWindowHost,
+ public MessageLoop::Dispatcher {
public:
explicit RootWindowHostLinux(const gfx::Rect& bounds);
virtual ~RootWindowHostLinux();
- // Handles an event targeted at this host's window.
- base::MessagePumpDispatcher::DispatchStatus Dispatch(XEvent* xev);
+ // Overridden from Dispatcher overrides:
+ virtual base::MessagePumpDispatcher::DispatchStatus
+ Dispatch(XEvent* xev) OVERRIDE;
private:
// RootWindowHost Overrides.
@@ -78,6 +81,8 @@ class RootWindowHostLinux : public RootWindowHost {
// True if the window should be focused when the window is shown.
bool focus_when_shown_;
+ scoped_array<XID> pointer_barriers_;
+
DISALLOW_COPY_AND_ASSIGN(RootWindowHostLinux);
};

Powered by Google App Engine
This is Rietveld 408576698