Index: content/browser/renderer_host/render_widget_host_view_win.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc |
index fcfeac8668a7e1e134a9dd0c43aa1c674a2b7eff..19d6353ad5bef8df29d11e00a28834dff0052d68 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_win.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc |
@@ -46,6 +46,7 @@ |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderline.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFactory.h" |
+#include "ui/base/gestures/gesture_recognizer.h" |
#include "ui/base/ime/composition_text.h" |
#include "ui/base/l10n/l10n_util_win.h" |
#include "ui/base/text/text_elider.h" |
@@ -57,6 +58,7 @@ |
#include "ui/gfx/gdi_util.h" |
#include "ui/gfx/rect.h" |
#include "ui/gfx/screen.h" |
+#include "ui/views/events/event.h" |
#include "webkit/glue/webaccessibility.h" |
#include "webkit/glue/webcursor.h" |
#include "webkit/plugins/npapi/plugin_constants_win.h" |
@@ -993,6 +995,39 @@ void RenderWidgetHostViewWin::UpdateDesiredTouchMode(bool touch_mode) { |
} |
} |
+ui::GestureEvent* RenderWidgetHostViewWin::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) { |
+ return new views::GestureEvent(type, location.x(), location.y(), flags, time, |
+ param_first, param_second, touch_id_bitfield); |
+} |
+ |
+ui::TouchEvent* RenderWidgetHostViewWin::CreateTouchEvent( |
+ ui::EventType type, |
+ const gfx::Point& location, |
+ int touch_id, |
+ const base::TimeDelta& time_stamp) { |
+ return new views::TouchEvent( |
+ type, location.x(), location.y(), 0, touch_id, 0, 0, 0, 0); |
+} |
+ |
+bool RenderWidgetHostViewWin::DispatchLongPressGestureEvent( |
+ ui::GestureEvent* event) { |
+ // TODO: Implement. |
+ return false; |
+} |
+ |
+bool RenderWidgetHostViewWin::DispatchCancelTouchEvent( |
+ ui::TouchEvent* event) { |
+ // TODO: Implement. |
+ return false; |
+} |
+ |
void RenderWidgetHostViewWin::SetHasHorizontalScrollbar( |
bool has_horizontal_scrollbar) { |
} |