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

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

Issue 54973005: Do not show menu items added by extensions inside <webview>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 | « no previous file | 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/tab_contents/render_view_context_menu.h" 5 #include "chrome/browser/tab_contents/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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 AppendEditableItems(); 645 AppendEditableItems();
646 else if (has_selection) 646 else if (has_selection)
647 AppendCopyItem(); 647 AppendCopyItem();
648 648
649 if (!is_guest_ && has_selection) { 649 if (!is_guest_ && has_selection) {
650 AppendSearchProvider(); 650 AppendSearchProvider();
651 if (!IsDevToolsURL(params_.page_url)) 651 if (!IsDevToolsURL(params_.page_url))
652 AppendPrintItem(); 652 AppendPrintItem();
653 } 653 }
654 654
655 if (!IsDevToolsURL(params_.page_url)) 655 if (!IsDevToolsURL(params_.page_url) && !is_guest_)
656 AppendAllExtensionItems(); 656 AppendAllExtensionItems();
657 657
658 AppendDeveloperItems(); 658 AppendDeveloperItems();
659 659
660 if (!is_guest_) { 660 if (!is_guest_) {
661 #if defined(ENABLE_FULL_PRINTING) 661 #if defined(ENABLE_FULL_PRINTING)
662 if (!print_preview_menu_observer_.get()) { 662 if (!print_preview_menu_observer_.get()) {
663 print_preview_menu_observer_.reset( 663 print_preview_menu_observer_.reset(
664 new PrintPreviewContextMenuObserver(source_web_contents_)); 664 new PrintPreviewContextMenuObserver(source_web_contents_));
665 } 665 }
(...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 source_web_contents_->GetRenderViewHost()-> 2109 source_web_contents_->GetRenderViewHost()->
2110 ExecuteMediaPlayerActionAtLocation(location, action); 2110 ExecuteMediaPlayerActionAtLocation(location, action);
2111 } 2111 }
2112 2112
2113 void RenderViewContextMenu::PluginActionAt( 2113 void RenderViewContextMenu::PluginActionAt(
2114 const gfx::Point& location, 2114 const gfx::Point& location,
2115 const WebPluginAction& action) { 2115 const WebPluginAction& action) {
2116 source_web_contents_->GetRenderViewHost()-> 2116 source_web_contents_->GetRenderViewHost()->
2117 ExecutePluginActionAtLocation(location, action); 2117 ExecutePluginActionAtLocation(location, action);
2118 } 2118 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698