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

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

Issue 91002: Always enable copy-link-address in context menu. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 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/common/render_messages.h ('k') | webkit/glue/context_menu.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 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 const std::wstring& selection_text, 2027 const std::wstring& selection_text,
2028 const std::wstring& misspelled_word, 2028 const std::wstring& misspelled_word,
2029 int edit_flags, 2029 int edit_flags,
2030 const std::string& security_info) { 2030 const std::string& security_info) {
2031 ContextMenuParams params; 2031 ContextMenuParams params;
2032 params.node = node; 2032 params.node = node;
2033 params.x = x; 2033 params.x = x;
2034 params.y = y; 2034 params.y = y;
2035 params.image_url = image_url; 2035 params.image_url = image_url;
2036 params.link_url = link_url; 2036 params.link_url = link_url;
2037 params.unfiltered_link_url = link_url;
2037 params.page_url = page_url; 2038 params.page_url = page_url;
2038 params.frame_url = frame_url; 2039 params.frame_url = frame_url;
2039 params.selection_text = selection_text; 2040 params.selection_text = selection_text;
2040 params.misspelled_word = misspelled_word; 2041 params.misspelled_word = misspelled_word;
2041 params.spellcheck_enabled = 2042 params.spellcheck_enabled =
2042 webview->GetFocusedFrame()->SpellCheckEnabled(); 2043 webview->GetFocusedFrame()->SpellCheckEnabled();
2043 params.edit_flags = edit_flags; 2044 params.edit_flags = edit_flags;
2044 params.security_info = security_info; 2045 params.security_info = security_info;
2045 Send(new ViewHostMsg_ContextMenu(routing_id_, params)); 2046 Send(new ViewHostMsg_ContextMenu(routing_id_, params));
2046 } 2047 }
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
3025 } 3026 }
3026 } 3027 }
3027 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinishDoc", start_to_finish_doc); 3028 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinishDoc", start_to_finish_doc);
3028 UMA_HISTOGRAM_TIMES("Renderer.All.FinishDocToFinish", finish_doc_to_finish); 3029 UMA_HISTOGRAM_TIMES("Renderer.All.FinishDocToFinish", finish_doc_to_finish);
3029 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinish", start_to_finish); 3030 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinish", start_to_finish);
3030 if (start_to_first_layout.ToInternalValue() >= 0) { 3031 if (start_to_first_layout.ToInternalValue() >= 0) {
3031 UMA_HISTOGRAM_TIMES( 3032 UMA_HISTOGRAM_TIMES(
3032 "Renderer.All.StartToFirstLayout", start_to_first_layout); 3033 "Renderer.All.StartToFirstLayout", start_to_first_layout);
3033 } 3034 }
3034 } 3035 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698