Chromium Code Reviews| Index: content/browser/renderer_host/render_widget_host_view_win.h |
| diff --git a/content/browser/renderer_host/render_widget_host_view_win.h b/content/browser/renderer_host/render_widget_host_view_win.h |
| index 7990345e9f8a9a0da5290be18b774677a2b4aedf..b058f074dcebfadc5c85a6894f90f4843371cc83 100644 |
| --- a/content/browser/renderer_host/render_widget_host_view_win.h |
| +++ b/content/browser/renderer_host/render_widget_host_view_win.h |
| @@ -24,6 +24,8 @@ |
| #include "content/common/content_export.h" |
| #include "content/public/browser/notification_observer.h" |
| #include "content/public/browser/notification_registrar.h" |
| +#include "ui/base/gestures/gesture_recognizer.h" |
| +#include "ui/base/gestures/gesture_types.h" |
| #include "ui/base/win/ime_input.h" |
| #include "ui/gfx/native_widget_types.h" |
| #include "ui/gfx/point.h" |
| @@ -94,7 +96,8 @@ class RenderWidgetHostViewWin |
| public content::RenderWidgetHostViewBase, |
| public content::NotificationObserver, |
| public BrowserAccessibilityDelegate, |
| - public gfx::SysColorChangeListener { |
| + public gfx::SysColorChangeListener, |
| + public ui::GestureEventHelper { |
| public: |
| virtual ~RenderWidgetHostViewWin(); |
| @@ -469,6 +472,23 @@ class RenderWidgetHostViewWin |
| // is removed from the list on an TOUCHEVENTF_UP message. |
| WebTouchState touch_state_; |
| + // Overridden from ui::GestureEventHelper. |
|
sky
2012/05/03 22:39:19
Move these right beneath
virtual void OnSysColorCh
|
| + virtual ui::GestureEvent* CreateGestureEvent(ui::EventType type, |
| + const gfx::Point& location, |
| + int flags, |
| + const base::Time time, |
| + float param_first, |
| + float param_second, |
| + unsigned int touch_id_bitfield) OVERRIDE; |
| + virtual ui::TouchEvent* CreateTouchEvent(ui::EventType type, |
| + const gfx::Point& location, |
| + int touch_id, |
| + base::TimeDelta time_stamp) OVERRIDE; |
| + virtual bool DispatchLongPressGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| + virtual bool DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| + |
| + scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
| + |
| // True if we're in the midst of a paint operation and should respond to |
| // DidPaintRect() notifications by merely invalidating. See comments on |
| // render_widget_host_view.h:DidPaintRect(). |