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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 149604: Begin implementation of the context menu for Video and Audio tags. (Closed)
Patch Set: Fix small style issues. Created 11 years, 5 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 unified diff | Download patch
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/api/public/WebMediaPlayer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 1970
1971 Send(new ViewHostMsg_UpdateState( 1971 Send(new ViewHostMsg_UpdateState(
1972 routing_id_, page_id_, webkit_glue::HistoryItemToString(item))); 1972 routing_id_, page_id_, webkit_glue::HistoryItemToString(item)));
1973 } 1973 }
1974 1974
1975 void RenderView::ShowContextMenu(WebView* webview, 1975 void RenderView::ShowContextMenu(WebView* webview,
1976 ContextNode node, 1976 ContextNode node,
1977 int x, 1977 int x,
1978 int y, 1978 int y,
1979 const GURL& link_url, 1979 const GURL& link_url,
1980 const GURL& image_url, 1980 const GURL& src_url,
1981 const GURL& page_url, 1981 const GURL& page_url,
1982 const GURL& frame_url, 1982 const GURL& frame_url,
1983 const ContextMenuMediaParams& media_params,
1983 const std::wstring& selection_text, 1984 const std::wstring& selection_text,
1984 const std::wstring& misspelled_word, 1985 const std::wstring& misspelled_word,
1985 int edit_flags, 1986 int edit_flags,
1986 const std::string& security_info, 1987 const std::string& security_info,
1987 const std::string& frame_charset) { 1988 const std::string& frame_charset) {
1988 ContextMenuParams params; 1989 ContextMenuParams params;
1989 params.node = node; 1990 params.node = node;
1990 params.x = x; 1991 params.x = x;
1991 params.y = y; 1992 params.y = y;
1992 params.image_url = image_url; 1993 params.src_url = src_url;
1993 params.link_url = link_url; 1994 params.link_url = link_url;
1994 params.unfiltered_link_url = link_url; 1995 params.unfiltered_link_url = link_url;
1995 params.page_url = page_url; 1996 params.page_url = page_url;
1996 params.frame_url = frame_url; 1997 params.frame_url = frame_url;
1998 params.media_params = media_params;
1997 params.selection_text = selection_text; 1999 params.selection_text = selection_text;
1998 params.misspelled_word = misspelled_word; 2000 params.misspelled_word = misspelled_word;
1999 params.spellcheck_enabled = 2001 params.spellcheck_enabled =
2000 webview->GetFocusedFrame()->SpellCheckEnabled(); 2002 webview->GetFocusedFrame()->SpellCheckEnabled();
2001 params.edit_flags = edit_flags; 2003 params.edit_flags = edit_flags;
2002 params.security_info = security_info; 2004 params.security_info = security_info;
2003 params.frame_charset = frame_charset; 2005 params.frame_charset = frame_charset;
2004 Send(new ViewHostMsg_ContextMenu(routing_id_, params)); 2006 Send(new ViewHostMsg_ContextMenu(routing_id_, params));
2005 } 2007 }
2006 2008
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
3058 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); 3060 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms));
3059 } 3061 }
3060 3062
3061 void RenderView::Print(WebFrame* frame, bool script_initiated) { 3063 void RenderView::Print(WebFrame* frame, bool script_initiated) {
3062 DCHECK(frame); 3064 DCHECK(frame);
3063 if (print_helper_.get() == NULL) { 3065 if (print_helper_.get() == NULL) {
3064 print_helper_.reset(new PrintWebViewHelper(this)); 3066 print_helper_.reset(new PrintWebViewHelper(this));
3065 } 3067 }
3066 print_helper_->Print(frame, script_initiated); 3068 print_helper_->Print(frame, script_initiated);
3067 } 3069 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/api/public/WebMediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698