OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |