Index: content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc |
diff --git a/content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc b/content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc |
index b1d7c2bb94f7ba1fffdb02414bb6db15d092578c..22aa5138536966469c62c750c1acde641243abd2 100644 |
--- a/content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc |
+++ b/content/browser/renderer_host/input/touch_selection_controller_client_child_frame.cc |
@@ -9,7 +9,7 @@ |
#include "content/browser/renderer_host/render_widget_host_delegate.h" |
#include "content/browser/renderer_host/render_widget_host_impl.h" |
#include "content/common/content_switches_internal.h" |
-#include "content/common/view_messages.h" |
+#include "content/common/frame_messages.h" |
#include "ui/base/clipboard/clipboard.h" |
#include "ui/gfx/geometry/point_conversions.h" |
#include "ui/strings/grit/ui_strings.h" |
@@ -184,12 +184,9 @@ void TouchSelectionControllerClientChildFrame::RunContextMenu() { |
anchor_point.Offset(-origin.x(), -origin.y()); |
RenderWidgetHostImpl* host = |
RenderWidgetHostImpl::From(rwhv_->GetRenderWidgetHost()); |
- // TODO(wjmaclean): Probably this ViewMsg should be converted to a FrameMsg |
- // since it will need to go to a RenderFrame once the Blink-side plumbing for |
- // this is hooked up. |
- host->Send(new ViewMsg_ShowContextMenu(host->GetRoutingID(), |
- ui::MENU_SOURCE_TOUCH_EDIT_MENU, |
- gfx::ToRoundedPoint(anchor_point))); |
+ host->Send(new FrameMsg_ShowContextMenu(host->GetRoutingID(), |
EhsanK
2017/05/23 22:31:23
Just curious if host->ShowContextMenuAtPoint() wou
wjmaclean
2017/05/24 13:05:52
It might ... in preparing this CL I followed the e
|
+ ui::MENU_SOURCE_TOUCH_EDIT_MENU, |
+ gfx::ToRoundedPoint(anchor_point))); |
// Hide selection handles after getting rect-between-bounds from touch |
// selection controller; otherwise, rect would be empty and the above |