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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 22386003: Move two more constants into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/in_memory_url_index.cc ('k') | chrome/common/net/url_util.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/tab_contents/render_view_context_menu.h" 5 #include "chrome/browser/tab_contents/render_view_context_menu.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 if (!external_) { 831 if (!external_) {
832 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPENLINKOFFTHERECORD, 832 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPENLINKOFFTHERECORD,
833 IDS_CONTENT_CONTEXT_OPENLINKOFFTHERECORD); 833 IDS_CONTENT_CONTEXT_OPENLINKOFFTHERECORD);
834 } 834 }
835 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_SAVELINKAS, 835 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_SAVELINKAS,
836 IDS_CONTENT_CONTEXT_SAVELINKAS); 836 IDS_CONTENT_CONTEXT_SAVELINKAS);
837 } 837 }
838 838
839 menu_model_.AddItemWithStringId( 839 menu_model_.AddItemWithStringId(
840 IDC_CONTENT_CONTEXT_COPYLINKLOCATION, 840 IDC_CONTENT_CONTEXT_COPYLINKLOCATION,
841 params_.link_url.SchemeIs(chrome::kMailToScheme) ? 841 params_.link_url.SchemeIs(content::kMailToScheme) ?
842 IDS_CONTENT_CONTEXT_COPYEMAILADDRESS : 842 IDS_CONTENT_CONTEXT_COPYEMAILADDRESS :
843 IDS_CONTENT_CONTEXT_COPYLINKLOCATION); 843 IDS_CONTENT_CONTEXT_COPYLINKLOCATION);
844 } 844 }
845 845
846 void RenderViewContextMenu::AppendImageItems() { 846 void RenderViewContextMenu::AppendImageItems() {
847 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_SAVEIMAGEAS, 847 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_SAVEIMAGEAS,
848 IDS_CONTENT_CONTEXT_SAVEIMAGEAS); 848 IDS_CONTENT_CONTEXT_SAVEIMAGEAS);
849 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_COPYIMAGELOCATION, 849 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_COPYIMAGELOCATION,
850 IDS_CONTENT_CONTEXT_COPYIMAGELOCATION); 850 IDS_CONTENT_CONTEXT_COPYIMAGELOCATION);
851 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_COPYIMAGE, 851 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_COPYIMAGE,
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 source_web_contents_->GetRenderViewHost()-> 2076 source_web_contents_->GetRenderViewHost()->
2077 ExecuteMediaPlayerActionAtLocation(location, action); 2077 ExecuteMediaPlayerActionAtLocation(location, action);
2078 } 2078 }
2079 2079
2080 void RenderViewContextMenu::PluginActionAt( 2080 void RenderViewContextMenu::PluginActionAt(
2081 const gfx::Point& location, 2081 const gfx::Point& location,
2082 const WebPluginAction& action) { 2082 const WebPluginAction& action) {
2083 source_web_contents_->GetRenderViewHost()-> 2083 source_web_contents_->GetRenderViewHost()->
2084 ExecutePluginActionAtLocation(location, action); 2084 ExecutePluginActionAtLocation(location, action);
2085 } 2085 }
OLDNEW
« no previous file with comments | « chrome/browser/history/in_memory_url_index.cc ('k') | chrome/common/net/url_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698