Index: content/browser/renderer_host/render_widget_host_impl.cc |
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
index 49e16341e3d7677755d75b3f79be44a9b7337633..82fba77fca10ddcaeb3f5da5570172cec6b2c0cd 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.cc |
+++ b/content/browser/renderer_host/render_widget_host_impl.cc |
@@ -1315,9 +1315,11 @@ void RenderWidgetHostImpl::SetCursor(const WebCursor& cursor) { |
view_->UpdateCursor(cursor); |
} |
-void RenderWidgetHostImpl::ShowContextMenuAtPoint(const gfx::Point& point) { |
- Send(new ViewMsg_ShowContextMenu( |
- GetRoutingID(), ui::MENU_SOURCE_MOUSE, point)); |
+void RenderWidgetHostImpl::ShowContextMenuAtPoint(const gfx::Point& point, |
+ bool from_touch_handle) { |
+ const ui::MenuSourceType menu_source_type = |
+ from_touch_handle ? ui::MENU_SOURCE_TOUCH_HANDLE : ui::MENU_SOURCE_MOUSE; |
+ Send(new ViewMsg_ShowContextMenu(GetRoutingID(), menu_source_type, point)); |
} |
void RenderWidgetHostImpl::SendCursorVisibilityState(bool is_visible) { |