| 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 | 632 |
| 633 if (content_type_->SupportsGroup(ContextMenuContentType::ITEM_GROUP_EDITABLE)) | 633 if (content_type_->SupportsGroup(ContextMenuContentType::ITEM_GROUP_EDITABLE)) |
| 634 AppendEditableItems(); | 634 AppendEditableItems(); |
| 635 | 635 |
| 636 if (content_type_->SupportsGroup(ContextMenuContentType::ITEM_GROUP_COPY)) { | 636 if (content_type_->SupportsGroup(ContextMenuContentType::ITEM_GROUP_COPY)) { |
| 637 DCHECK(!content_type_->SupportsGroup( | 637 DCHECK(!content_type_->SupportsGroup( |
| 638 ContextMenuContentType::ITEM_GROUP_EDITABLE)); | 638 ContextMenuContentType::ITEM_GROUP_EDITABLE)); |
| 639 AppendCopyItem(); | 639 AppendCopyItem(); |
| 640 } | 640 } |
| 641 | 641 |
| 642 if (content_type_->SupportsGroup( |
| 643 ContextMenuContentType::ITEM_GROUP_SEARCH_PROVIDER)) { |
| 644 AppendSearchProvider(); |
| 645 } |
| 646 |
| 642 if (content_type_->SupportsGroup(ContextMenuContentType::ITEM_GROUP_PRINT)) | 647 if (content_type_->SupportsGroup(ContextMenuContentType::ITEM_GROUP_PRINT)) |
| 643 AppendPrintItem(); | 648 AppendPrintItem(); |
| 644 | 649 |
| 645 if (content_type_->SupportsGroup( | 650 if (content_type_->SupportsGroup( |
| 646 ContextMenuContentType::ITEM_GROUP_ALL_EXTENSION)) { | 651 ContextMenuContentType::ITEM_GROUP_ALL_EXTENSION)) { |
| 647 DCHECK(!content_type_->SupportsGroup( | 652 DCHECK(!content_type_->SupportsGroup( |
| 648 ContextMenuContentType::ITEM_GROUP_CURRENT_EXTENSION)); | 653 ContextMenuContentType::ITEM_GROUP_CURRENT_EXTENSION)); |
| 649 AppendAllExtensionItems(); | 654 AppendAllExtensionItems(); |
| 650 } | 655 } |
| 651 | 656 |
| (...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2045 source_web_contents_->GetRenderViewHost()-> | 2050 source_web_contents_->GetRenderViewHost()-> |
| 2046 ExecuteMediaPlayerActionAtLocation(location, action); | 2051 ExecuteMediaPlayerActionAtLocation(location, action); |
| 2047 } | 2052 } |
| 2048 | 2053 |
| 2049 void RenderViewContextMenu::PluginActionAt( | 2054 void RenderViewContextMenu::PluginActionAt( |
| 2050 const gfx::Point& location, | 2055 const gfx::Point& location, |
| 2051 const WebPluginAction& action) { | 2056 const WebPluginAction& action) { |
| 2052 source_web_contents_->GetRenderViewHost()-> | 2057 source_web_contents_->GetRenderViewHost()-> |
| 2053 ExecutePluginActionAtLocation(location, action); | 2058 ExecutePluginActionAtLocation(location, action); |
| 2054 } | 2059 } |
| OLD | NEW |