Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: chrome/browser/renderer_context_menu/render_view_context_menu.cc

Issue 187923006: Renderer context menu: add missing search provider link. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/renderer_context_menu/context_menu_content_type_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_context_menu/context_menu_content_type_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698