From b2f7ac4583b968d0c20ea8f6c4110aeb6882699a Mon Sep 17 00:00:00 2001 From: "rjkroege@google.com" Date: Tue, 26 Oct 2010 18:43:18 +0000 Subject: touchui: Directly process key and mouse events. Capture the keyboard and mouse events directly from X, create a corresponding views::Event out of it, and send it to the associated RootView. Includes Chad's (wyck) function FindRootViewForGdkEvent (from #3704005) slightly modified (called FindRootViewForGdkWindow). BUG=None TEST=Click/Keypress events in a webpage should work correctly. Review URL: http://codereview.chromium.org/3801011 Patch from Sadrul Chowdhury . git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63916 0039d316-1c4b-4281-b951-d872f2087c98 --- base/message_pump_glib.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'base/message_pump_glib.h') diff --git a/base/message_pump_glib.h b/base/message_pump_glib.h index 31d37c0..d8cbbda 100644 --- a/base/message_pump_glib.h +++ b/base/message_pump_glib.h @@ -88,6 +88,10 @@ class MessagePumpForUI : public MessagePump { // some task before/after calling the default handler (EventDispatcher). virtual void DispatchEvents(GdkEvent* event); + protected: + // Returns the dispatcher for the current run state (|state_->dispatcher|). + Dispatcher* GetDispatcher(); + private: // We may make recursive calls to Run, so we save state that needs to be // separate between them in this structure type. -- cgit v1.1