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