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

Unified Diff: content/renderer/render_view_impl.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/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index afb3b3f04f7b5dfec2df4a1dc3084da8974bddbc..426c7ab3f8081056daf318cd2e160f02aee22f2d 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1234,7 +1234,6 @@ bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ViewMsg_MediaPlayerActionAt, OnMediaPlayerActionAt)
IPC_MESSAGE_HANDLER(ViewMsg_PluginActionAt, OnPluginActionAt)
IPC_MESSAGE_HANDLER(ViewMsg_SetActive, OnSetActive)
- IPC_MESSAGE_HANDLER(ViewMsg_ShowContextMenu, OnShowContextMenu)
IPC_MESSAGE_HANDLER(ViewMsg_ReleaseDisambiguationPopupBitmap,
OnReleaseDisambiguationPopupBitmap)
IPC_MESSAGE_HANDLER(ViewMsg_ResolveTapDisambiguation,
@@ -2410,19 +2409,6 @@ void RenderViewImpl::DismissDateTimeDialog() {
date_time_picker_client_.reset(NULL);
}
-#endif // defined(OS_ANDROID)
-
-void RenderViewImpl::OnShowContextMenu(
- ui::MenuSourceType source_type, const gfx::Point& location) {
- input_handler_->set_context_menu_source_type(source_type);
- has_host_context_menu_location_ = true;
- host_context_menu_location_ = location;
- if (webview())
- webview()->ShowContextMenu();
- has_host_context_menu_location_ = false;
-}
-
-#if defined(OS_ANDROID)
bool RenderViewImpl::DidTapMultipleTargets(
const WebSize& inner_viewport_offset,
const WebRect& touch_rect,

Powered by Google App Engine
This is Rietveld 408576698