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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 8002005: Removed sending of the following IPC messages from chrome and added API's on the RenderViewHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/render_view_context_menu.cc
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu.cc (revision 102130)
+++ chrome/browser/tab_contents/render_view_context_menu.cc (working copy)
@@ -62,9 +62,9 @@
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/user_metrics.h"
#include "content/common/content_restriction.h"
-#include "content/common/view_messages.h"
#include "grit/generated_resources.h"
#include "net/base/escape.h"
+#include "net/base/net_util.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.h"
#include "ui/base/l10n/l10n_util.h"
@@ -1427,8 +1427,7 @@
if (id >= IDC_CONTENT_CONTEXT_CUSTOM_FIRST &&
id <= IDC_CONTENT_CONTEXT_CUSTOM_LAST) {
unsigned action = id - IDC_CONTENT_CONTEXT_CUSTOM_FIRST;
- rvh->Send(new ViewMsg_CustomContextMenuAction(
- rvh->routing_id(), params_.custom_context, action));
+ rvh->ExecuteCustomContextMenuCommand(action, params_.custom_context);
return;
}
@@ -1873,8 +1872,7 @@
view->ShowingContextMenu(false);
RenderViewHost* rvh = source_tab_contents_->render_view_host();
if (rvh) {
- rvh->Send(new ViewMsg_ContextMenuClosed(
- rvh->routing_id(), params_.custom_context));
+ rvh->NotifyContextMenuClosed(params_.custom_context);
}
}
@@ -1923,8 +1921,7 @@
}
void RenderViewContextMenu::CopyImageAt(int x, int y) {
- RenderViewHost* rvh = source_tab_contents_->render_view_host();
- rvh->Send(new ViewMsg_CopyImageAt(rvh->routing_id(), x, y));
+ source_tab_contents_->render_view_host()->CopyImageAt(x, y);
}
void RenderViewContextMenu::Inspect(int x, int y) {
@@ -1943,7 +1940,6 @@
void RenderViewContextMenu::MediaPlayerActionAt(
const gfx::Point& location,
const WebMediaPlayerAction& action) {
- RenderViewHost* rvh = source_tab_contents_->render_view_host();
- rvh->Send(new ViewMsg_MediaPlayerActionAt(
- rvh->routing_id(), location, action));
+ source_tab_contents_->render_view_host()->
+ ExecuteMediaPlayerActionAtLocation(location, action);
}
« no previous file with comments | « no previous file | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698