| 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 1172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1989 source_web_contents_->GetRenderViewHost()-> | 1989 source_web_contents_->GetRenderViewHost()-> |
| 1990 ExecuteMediaPlayerActionAtLocation(location, action); | 1990 ExecuteMediaPlayerActionAtLocation(location, action); |
| 1991 } | 1991 } |
| 1992 | 1992 |
| 1993 void RenderViewContextMenu::PluginActionAt( | 1993 void RenderViewContextMenu::PluginActionAt( |
| 1994 const gfx::Point& location, | 1994 const gfx::Point& location, |
| 1995 const WebPluginAction& action) { | 1995 const WebPluginAction& action) { |
| 1996 source_web_contents_->GetRenderViewHost()-> | 1996 source_web_contents_->GetRenderViewHost()-> |
| 1997 ExecutePluginActionAtLocation(location, action); | 1997 ExecutePluginActionAtLocation(location, action); |
| 1998 } | 1998 } |
| OLD | NEW |