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

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

Issue 273193004: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 6 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/renderer_context_menu/render_view_context_menu.h" 5 #include "chrome/browser/renderer_context_menu/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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 } 796 }
797 797
798 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPENLINKOFFTHERECORD, 798 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPENLINKOFFTHERECORD,
799 IDS_CONTENT_CONTEXT_OPENLINKOFFTHERECORD); 799 IDS_CONTENT_CONTEXT_OPENLINKOFFTHERECORD);
800 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_SAVELINKAS, 800 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_SAVELINKAS,
801 IDS_CONTENT_CONTEXT_SAVELINKAS); 801 IDS_CONTENT_CONTEXT_SAVELINKAS);
802 } 802 }
803 803
804 menu_model_.AddItemWithStringId( 804 menu_model_.AddItemWithStringId(
805 IDC_CONTENT_CONTEXT_COPYLINKLOCATION, 805 IDC_CONTENT_CONTEXT_COPYLINKLOCATION,
806 params_.link_url.SchemeIs(content::kMailToScheme) ? 806 params_.link_url.SchemeIs(url::kMailToScheme) ?
807 IDS_CONTENT_CONTEXT_COPYEMAILADDRESS : 807 IDS_CONTENT_CONTEXT_COPYEMAILADDRESS :
808 IDS_CONTENT_CONTEXT_COPYLINKLOCATION); 808 IDS_CONTENT_CONTEXT_COPYLINKLOCATION);
809 } 809 }
810 810
811 void RenderViewContextMenu::AppendImageItems() { 811 void RenderViewContextMenu::AppendImageItems() {
812 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_SAVEIMAGEAS, 812 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_SAVEIMAGEAS,
813 IDS_CONTENT_CONTEXT_SAVEIMAGEAS); 813 IDS_CONTENT_CONTEXT_SAVEIMAGEAS);
814 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_COPYIMAGELOCATION, 814 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_COPYIMAGELOCATION,
815 IDS_CONTENT_CONTEXT_COPYIMAGELOCATION); 815 IDS_CONTENT_CONTEXT_COPYIMAGELOCATION);
816 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_COPYIMAGE, 816 menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_COPYIMAGE,
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1987 source_web_contents_->GetRenderViewHost()-> 1987 source_web_contents_->GetRenderViewHost()->
1988 ExecuteMediaPlayerActionAtLocation(location, action); 1988 ExecuteMediaPlayerActionAtLocation(location, action);
1989 } 1989 }
1990 1990
1991 void RenderViewContextMenu::PluginActionAt( 1991 void RenderViewContextMenu::PluginActionAt(
1992 const gfx::Point& location, 1992 const gfx::Point& location,
1993 const WebPluginAction& action) { 1993 const WebPluginAction& action) {
1994 source_web_contents_->GetRenderViewHost()-> 1994 source_web_contents_->GetRenderViewHost()->
1995 ExecutePluginActionAtLocation(location, action); 1995 ExecutePluginActionAtLocation(location, action);
1996 } 1996 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/renderer_host/offline_resource_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698