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

Unified Diff: chrome/renderer/render_view.cc

Issue 164279: View Background Image Feature (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 4 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 | « chrome/renderer/render_view.h ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 21856)
+++ chrome/renderer/render_view.cc (working copy)
@@ -2012,6 +2012,7 @@
const std::string& security_info,
const std::string& frame_charset) {
ContextMenuParams params;
+
params.node_type = node_type;
params.x = x;
params.y = y;
@@ -2031,6 +2032,44 @@
Send(new ViewHostMsg_ContextMenu(routing_id_, params));
}
+void RenderView::ShowContextMenu(WebView* webview,
+ ContextNodeType node_type,
+ int x,
+ int y,
+ const GURL& link_url,
+ const GURL& src_url,
+ const GURL& page_url,
+ const GURL& frame_url,
+ const GURL& bkg_url,
+ const ContextMenuMediaParams& media_params,
+ const std::wstring& selection_text,
+ const std::wstring& misspelled_word,
+ int edit_flags,
+ const std::string& security_info,
+ const std::string& frame_charset) {
+
+ ContextMenuParams params;
+
+ params.node_type = node_type;
+ params.x = x;
+ params.y = y;
+ params.bkg_url = bkg_url;
+ params.src_url = src_url;
+ params.link_url = link_url;
+ params.unfiltered_link_url = link_url;
+ params.page_url = page_url;
+ params.frame_url = frame_url;
+ params.media_params = media_params;
+ params.selection_text = selection_text;
+ params.misspelled_word = misspelled_word;
+ params.spellcheck_enabled =
+ webview->GetFocusedFrame()->SpellCheckEnabled();
+ params.edit_flags = edit_flags;
+ params.security_info = security_info;
+ params.frame_charset = frame_charset;
+ Send(new ViewHostMsg_ContextMenu(routing_id_, params));
+}
+
void RenderView::StartDragging(WebView* webview,
const WebDragData& drag_data) {
Send(new ViewHostMsg_StartDragging(routing_id_, WebDropData(drag_data)));
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698