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

Unified Diff: ui/aura/dispatcher_linux.h

Issue 10377161: aura-x11: Install the dispatcher as a message-pump observer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « no previous file | ui/aura/dispatcher_linux.cc » ('j') | ui/aura/root_window_host_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/dispatcher_linux.h
diff --git a/ui/aura/dispatcher_linux.h b/ui/aura/dispatcher_linux.h
index 56255585900b70e4d0f6f81a72844363d73ff6a8..c18cc3073c19f29624868d4a55b09146b1849529 100644
--- a/ui/aura/dispatcher_linux.h
+++ b/ui/aura/dispatcher_linux.h
@@ -17,7 +17,8 @@
namespace aura {
-class DispatcherLinux : public MessageLoop::Dispatcher {
+class DispatcherLinux : public MessageLoop::Dispatcher,
+ public base::MessagePumpObserver {
public:
DispatcherLinux();
virtual ~DispatcherLinux();
@@ -29,6 +30,11 @@ class DispatcherLinux : public MessageLoop::Dispatcher {
// Overridden from MessageLoop::Dispatcher:
virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
+ // Overridden from base::MessagePumpObserver:
+ virtual base::EventStatus WillProcessEvent(
+ const base::NativeEvent& event) OVERRIDE;
+ virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE;
+
private:
typedef std::map< ::Window, MessageLoop::Dispatcher* > DispatchersMap;
« no previous file with comments | « no previous file | ui/aura/dispatcher_linux.cc » ('j') | ui/aura/root_window_host_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698