| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |