Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2080)

Unified Diff: content/browser/renderer_host/input/touch_selection_controller_client_aura.cc

Issue 2894043002: Add machinery to show touch editing context menus in OOPIFs. (Closed)
Patch Set: Remove WVI call to WFWI. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
diff --git a/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc b/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
index 1ad006396d31115a208aaf5c8debfa2e3c64a6fd..a72339b928de2b66ea6a13fdf7d4b8b6db1b333c 100644
--- a/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
+++ b/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
@@ -8,7 +8,7 @@
#include "content/browser/renderer_host/render_widget_host_delegate.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_view_aura.h"
-#include "content/common/view_messages.h"
+#include "content/common/frame_messages.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/common/context_menu_params.h"
#include "ui/aura/client/cursor_client.h"
@@ -463,9 +463,9 @@ void TouchSelectionControllerClientAura::RunContextMenu() {
gfx::PointF(anchor_rect.CenterPoint().x(), anchor_rect.y());
RenderWidgetHostImpl* host =
RenderWidgetHostImpl::From(rwhva_->GetRenderWidgetHost());
- host->Send(new ViewMsg_ShowContextMenu(host->GetRoutingID(),
- ui::MENU_SOURCE_TOUCH_EDIT_MENU,
- gfx::ToRoundedPoint(anchor_point)));
+ host->Send(new FrameMsg_ShowContextMenu(host->GetRoutingID(),
+ 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

Powered by Google App Engine
This is Rietveld 408576698