| 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 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/browser/autocomplete/autocomplete_input.h" | 26 #include "chrome/browser/autocomplete/autocomplete_input.h" |
| 27 #include "chrome/browser/autocomplete/autocomplete_match.h" | 27 #include "chrome/browser/autocomplete/autocomplete_match.h" |
| 28 #include "chrome/browser/browser_process.h" | 28 #include "chrome/browser/browser_process.h" |
| 29 #include "chrome/browser/chrome_notification_types.h" | 29 #include "chrome/browser/chrome_notification_types.h" |
| 30 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" | 30 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" |
| 31 #include "chrome/browser/devtools/devtools_window.h" | 31 #include "chrome/browser/devtools/devtools_window.h" |
| 32 #include "chrome/browser/download/download_service.h" | 32 #include "chrome/browser/download/download_service.h" |
| 33 #include "chrome/browser/download/download_service_factory.h" | 33 #include "chrome/browser/download/download_service_factory.h" |
| 34 #include "chrome/browser/download/download_stats.h" | 34 #include "chrome/browser/download/download_stats.h" |
| 35 #include "chrome/browser/extensions/devtools_util.h" | 35 #include "chrome/browser/extensions/devtools_util.h" |
| 36 #include "chrome/browser/extensions/extension_host.h" | |
| 37 #include "chrome/browser/extensions/extension_service.h" | 36 #include "chrome/browser/extensions/extension_service.h" |
| 38 #include "chrome/browser/google/google_util.h" | 37 #include "chrome/browser/google/google_util.h" |
| 39 #include "chrome/browser/guestview/webview/webview_guest.h" | 38 #include "chrome/browser/guestview/webview/webview_guest.h" |
| 40 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 39 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
| 41 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 40 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 42 #include "chrome/browser/profiles/profile.h" | 41 #include "chrome/browser/profiles/profile.h" |
| 43 #include "chrome/browser/profiles/profile_io_data.h" | 42 #include "chrome/browser/profiles/profile_io_data.h" |
| 44 #include "chrome/browser/renderer_context_menu/context_menu_content_type_factory
.h" | 43 #include "chrome/browser/renderer_context_menu/context_menu_content_type_factory
.h" |
| 45 #include "chrome/browser/renderer_context_menu/spellchecker_submenu_observer.h" | 44 #include "chrome/browser/renderer_context_menu/spellchecker_submenu_observer.h" |
| 46 #include "chrome/browser/renderer_context_menu/spelling_menu_observer.h" | 45 #include "chrome/browser/renderer_context_menu/spelling_menu_observer.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 #include "content/public/browser/notification_service.h" | 77 #include "content/public/browser/notification_service.h" |
| 79 #include "content/public/browser/render_frame_host.h" | 78 #include "content/public/browser/render_frame_host.h" |
| 80 #include "content/public/browser/render_process_host.h" | 79 #include "content/public/browser/render_process_host.h" |
| 81 #include "content/public/browser/render_view_host.h" | 80 #include "content/public/browser/render_view_host.h" |
| 82 #include "content/public/browser/render_widget_host_view.h" | 81 #include "content/public/browser/render_widget_host_view.h" |
| 83 #include "content/public/browser/user_metrics.h" | 82 #include "content/public/browser/user_metrics.h" |
| 84 #include "content/public/browser/web_contents.h" | 83 #include "content/public/browser/web_contents.h" |
| 85 #include "content/public/common/menu_item.h" | 84 #include "content/public/common/menu_item.h" |
| 86 #include "content/public/common/ssl_status.h" | 85 #include "content/public/common/ssl_status.h" |
| 87 #include "content/public/common/url_utils.h" | 86 #include "content/public/common/url_utils.h" |
| 87 #include "extensions/browser/extension_host.h" |
| 88 #include "extensions/browser/extension_system.h" | 88 #include "extensions/browser/extension_system.h" |
| 89 #include "extensions/browser/view_type_utils.h" | 89 #include "extensions/browser/view_type_utils.h" |
| 90 #include "extensions/common/extension.h" | 90 #include "extensions/common/extension.h" |
| 91 #include "grit/generated_resources.h" | 91 #include "grit/generated_resources.h" |
| 92 #include "net/base/escape.h" | 92 #include "net/base/escape.h" |
| 93 #include "third_party/WebKit/public/web/WebContextMenuData.h" | 93 #include "third_party/WebKit/public/web/WebContextMenuData.h" |
| 94 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" | 94 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" |
| 95 #include "third_party/WebKit/public/web/WebPluginAction.h" | 95 #include "third_party/WebKit/public/web/WebPluginAction.h" |
| 96 #include "ui/base/clipboard/clipboard.h" | 96 #include "ui/base/clipboard/clipboard.h" |
| 97 #include "ui/base/l10n/l10n_util.h" | 97 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 1969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2067 source_web_contents_->GetRenderViewHost()-> | 2067 source_web_contents_->GetRenderViewHost()-> |
| 2068 ExecuteMediaPlayerActionAtLocation(location, action); | 2068 ExecuteMediaPlayerActionAtLocation(location, action); |
| 2069 } | 2069 } |
| 2070 | 2070 |
| 2071 void RenderViewContextMenu::PluginActionAt( | 2071 void RenderViewContextMenu::PluginActionAt( |
| 2072 const gfx::Point& location, | 2072 const gfx::Point& location, |
| 2073 const WebPluginAction& action) { | 2073 const WebPluginAction& action) { |
| 2074 source_web_contents_->GetRenderViewHost()-> | 2074 source_web_contents_->GetRenderViewHost()-> |
| 2075 ExecutePluginActionAtLocation(location, action); | 2075 ExecutePluginActionAtLocation(location, action); |
| 2076 } | 2076 } |
| OLD | NEW |