Chromium Code Reviews| Index: views/mouse_watcher.cc |
| diff --git a/views/mouse_watcher.cc b/views/mouse_watcher.cc |
| index df5adeb4eecfa99829a1a01b9cf04397a515f0a9..90c2e9ec9e1901bee2466144409d3335838793fb 100644 |
| --- a/views/mouse_watcher.cc |
| +++ b/views/mouse_watcher.cc |
| @@ -35,10 +35,11 @@ class MouseWatcher::Observer : public MessageLoopForUI::Observer { |
| // MessageLoop::Observer implementation: |
| #if defined(OS_WIN) |
| - void WillProcessMessage(const MSG& msg) OVERRIDE { |
| + base::EventStatus WillProcessEvent(const MSG& msg) OVERRIDE { |
|
msw
2011/09/27 01:16:46
type/name here and below. potential code sharing.
oshima
2011/09/27 02:12:12
Done.
|
| + return base::EVENT_CONTINUE; |
| } |
| - void DidProcessMessage(const MSG& msg) OVERRIDE { |
| + void DidProcessEvent(const MSG& msg) OVERRIDE { |
| // We spy on three different Windows messages here to see if the mouse has |
| // moved out of the bounds of the view. The messages are: |
| // |
| @@ -61,7 +62,7 @@ class MouseWatcher::Observer : public MessageLoopForUI::Observer { |
| } |
| } |
| #elif defined(USE_WAYLAND) |
| - MessageLoopForUI::Observer::EventStatus WillProcessEvent( |
| + virtual MessageLoopForUI::Observer::EventStatus WillProcessEvent( |
| ui::WaylandEvent* event) OVERRIDE { |
| switch (event->type) { |
| case ui::WAYLAND_MOTION: |
| @@ -76,11 +77,19 @@ class MouseWatcher::Observer : public MessageLoopForUI::Observer { |
| } |
| return EVENT_CONTINUE; |
| } |
| +#elif defined(TOUCH_UI) || defined(USE_AURA) |
| + virtual base::EventStatus WillProcessEvent( |
| + const base::NativeEvent& event) OVERRIDE { |
| + return base::EVENT_CONTINUE; |
| + } |
| + virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE { |
| + NOTIMPLEMENTED(); |
| + } |
| #elif defined(TOOLKIT_USES_GTK) |
| - void WillProcessEvent(GdkEvent* event) OVERRIDE { |
| + virtual void WillProcessEvent(GdkEvent* event) OVERRIDE { |
| } |
| - void DidProcessEvent(GdkEvent* event) OVERRIDE { |
| + virtual void DidProcessEvent(GdkEvent* event) OVERRIDE { |
| switch (event->type) { |
| case GDK_MOTION_NOTIFY: |
| HandleGlobalMouseMoveEvent(false); |
| @@ -92,11 +101,6 @@ class MouseWatcher::Observer : public MessageLoopForUI::Observer { |
| break; |
| } |
| } |
| -#else |
| - EventStatus WillProcessXEvent(XEvent* event) OVERRIDE { |
| - // TODO(davemoore) Implement. |
| - return EVENT_CONTINUE; |
| - } |
| #endif |
| private: |