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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2894043002: Add machinery to show touch editing context menus in OOPIFs. (Closed)
Patch Set: Don't fall back to mainframe, formatting. 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 d33406f81e08aed503cffd94504dffbef756e66c..57b714d22cf9f61139c7dc1ca48406ae2c611b99 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1230,7 +1230,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,
@@ -2404,20 +2403,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(
- static_cast<blink::WebMenuSourceType>(source_type));
- 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