| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 | 722 |
| 723 if (content_type_->SupportsGroup(ContextMenuContentType::ITEM_GROUP_PRINT) && | 723 if (content_type_->SupportsGroup(ContextMenuContentType::ITEM_GROUP_PRINT) && |
| 724 !content_type_->SupportsGroup( | 724 !content_type_->SupportsGroup( |
| 725 ContextMenuContentType::ITEM_GROUP_MEDIA_IMAGE)) { | 725 ContextMenuContentType::ITEM_GROUP_MEDIA_IMAGE)) { |
| 726 AppendPrintItem(); | 726 AppendPrintItem(); |
| 727 } | 727 } |
| 728 | 728 |
| 729 if (content_type_->SupportsGroup( | 729 if (content_type_->SupportsGroup( |
| 730 ContextMenuContentType::ITEM_GROUP_EDITABLE)) { | 730 ContextMenuContentType::ITEM_GROUP_EDITABLE)) { |
| 731 menu_model_.AddSeparator(ui::NORMAL_SEPARATOR); | 731 menu_model_.AddSeparator(ui::NORMAL_SEPARATOR); |
| 732 AppendLanguageSettings(); |
| 732 AppendPlatformEditableItems(); | 733 AppendPlatformEditableItems(); |
| 733 AppendLanguageSettings(); | |
| 734 } | 734 } |
| 735 | 735 |
| 736 if (content_type_->SupportsGroup( | 736 if (content_type_->SupportsGroup( |
| 737 ContextMenuContentType::ITEM_GROUP_MEDIA_PLUGIN)) { | 737 ContextMenuContentType::ITEM_GROUP_MEDIA_PLUGIN)) { |
| 738 AppendRotationItems(); | 738 AppendRotationItems(); |
| 739 } | 739 } |
| 740 | 740 |
| 741 if (content_type_->SupportsGroup( | 741 if (content_type_->SupportsGroup( |
| 742 ContextMenuContentType::ITEM_GROUP_ALL_EXTENSION)) { | 742 ContextMenuContentType::ITEM_GROUP_ALL_EXTENSION)) { |
| 743 DCHECK(!content_type_->SupportsGroup( | 743 DCHECK(!content_type_->SupportsGroup( |
| (...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2211 source_web_contents_->GetRenderViewHost()-> | 2211 source_web_contents_->GetRenderViewHost()-> |
| 2212 ExecuteMediaPlayerActionAtLocation(location, action); | 2212 ExecuteMediaPlayerActionAtLocation(location, action); |
| 2213 } | 2213 } |
| 2214 | 2214 |
| 2215 void RenderViewContextMenu::PluginActionAt( | 2215 void RenderViewContextMenu::PluginActionAt( |
| 2216 const gfx::Point& location, | 2216 const gfx::Point& location, |
| 2217 const WebPluginAction& action) { | 2217 const WebPluginAction& action) { |
| 2218 source_web_contents_->GetRenderViewHost()-> | 2218 source_web_contents_->GetRenderViewHost()-> |
| 2219 ExecutePluginActionAtLocation(location, action); | 2219 ExecutePluginActionAtLocation(location, action); |
| 2220 } | 2220 } |
| OLD | NEW |