| 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)));
|
|
|