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

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

Issue 83002: download filename fix (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/render_view.h ('k') | net/base/net_util.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 1976 matching lines...) Expand 10 before | Expand all | Expand 10 after
1987 ContextNode node, 1987 ContextNode node,
1988 int x, 1988 int x,
1989 int y, 1989 int y,
1990 const GURL& link_url, 1990 const GURL& link_url,
1991 const GURL& image_url, 1991 const GURL& image_url,
1992 const GURL& page_url, 1992 const GURL& page_url,
1993 const GURL& frame_url, 1993 const GURL& frame_url,
1994 const std::wstring& selection_text, 1994 const std::wstring& selection_text,
1995 const std::wstring& misspelled_word, 1995 const std::wstring& misspelled_word,
1996 int edit_flags, 1996 int edit_flags,
1997 const std::string& security_info) { 1997 const std::string& security_info,
1998 const std::string& frame_charset) {
1998 ContextMenuParams params; 1999 ContextMenuParams params;
1999 params.node = node; 2000 params.node = node;
2000 params.x = x; 2001 params.x = x;
2001 params.y = y; 2002 params.y = y;
2002 params.image_url = image_url; 2003 params.image_url = image_url;
2003 params.link_url = link_url; 2004 params.link_url = link_url;
2004 params.unfiltered_link_url = link_url; 2005 params.unfiltered_link_url = link_url;
2005 params.page_url = page_url; 2006 params.page_url = page_url;
2006 params.frame_url = frame_url; 2007 params.frame_url = frame_url;
2007 params.selection_text = selection_text; 2008 params.selection_text = selection_text;
2008 params.misspelled_word = misspelled_word; 2009 params.misspelled_word = misspelled_word;
2009 params.spellcheck_enabled = 2010 params.spellcheck_enabled =
2010 webview->GetFocusedFrame()->SpellCheckEnabled(); 2011 webview->GetFocusedFrame()->SpellCheckEnabled();
2011 params.edit_flags = edit_flags; 2012 params.edit_flags = edit_flags;
2012 params.security_info = security_info; 2013 params.security_info = security_info;
2014 params.frame_charset = frame_charset;
2013 Send(new ViewHostMsg_ContextMenu(routing_id_, params)); 2015 Send(new ViewHostMsg_ContextMenu(routing_id_, params));
2014 } 2016 }
2015 2017
2016 void RenderView::StartDragging(WebView* webview, 2018 void RenderView::StartDragging(WebView* webview,
2017 const WebDragData& drag_data) { 2019 const WebDragData& drag_data) {
2018 Send(new ViewHostMsg_StartDragging(routing_id_, WebDropData(drag_data))); 2020 Send(new ViewHostMsg_StartDragging(routing_id_, WebDropData(drag_data)));
2019 } 2021 }
2020 2022
2021 void RenderView::TakeFocus(WebView* webview, bool reverse) { 2023 void RenderView::TakeFocus(WebView* webview, bool reverse) {
2022 Send(new ViewHostMsg_TakeFocus(routing_id_, reverse)); 2024 Send(new ViewHostMsg_TakeFocus(routing_id_, reverse));
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
2982 } 2984 }
2983 } 2985 }
2984 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinishDoc", start_to_finish_doc); 2986 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinishDoc", start_to_finish_doc);
2985 UMA_HISTOGRAM_TIMES("Renderer.All.FinishDocToFinish", finish_doc_to_finish); 2987 UMA_HISTOGRAM_TIMES("Renderer.All.FinishDocToFinish", finish_doc_to_finish);
2986 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinish", start_to_finish); 2988 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinish", start_to_finish);
2987 if (start_to_first_layout.ToInternalValue() >= 0) { 2989 if (start_to_first_layout.ToInternalValue() >= 0) {
2988 UMA_HISTOGRAM_TIMES( 2990 UMA_HISTOGRAM_TIMES(
2989 "Renderer.All.StartToFirstLayout", start_to_first_layout); 2991 "Renderer.All.StartToFirstLayout", start_to_first_layout);
2990 } 2992 }
2991 } 2993 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_view.h ('k') | net/base/net_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698