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 16 matching lines...) Expand all Loading... |
27 #include "chrome/browser/browser_process.h" | 27 #include "chrome/browser/browser_process.h" |
28 #include "chrome/browser/chrome_notification_types.h" | 28 #include "chrome/browser/chrome_notification_types.h" |
29 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" | 29 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" |
30 #include "chrome/browser/devtools/devtools_window.h" | 30 #include "chrome/browser/devtools/devtools_window.h" |
31 #include "chrome/browser/download/download_service.h" | 31 #include "chrome/browser/download/download_service.h" |
32 #include "chrome/browser/download/download_service_factory.h" | 32 #include "chrome/browser/download/download_service_factory.h" |
33 #include "chrome/browser/download/download_stats.h" | 33 #include "chrome/browser/download/download_stats.h" |
34 #include "chrome/browser/extensions/devtools_util.h" | 34 #include "chrome/browser/extensions/devtools_util.h" |
35 #include "chrome/browser/extensions/extension_host.h" | 35 #include "chrome/browser/extensions/extension_host.h" |
36 #include "chrome/browser/extensions/extension_service.h" | 36 #include "chrome/browser/extensions/extension_service.h" |
37 #include "chrome/browser/extensions/extension_system.h" | |
38 #include "chrome/browser/google/google_util.h" | 37 #include "chrome/browser/google/google_util.h" |
39 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 38 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
40 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 39 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
41 #include "chrome/browser/profiles/profile.h" | 40 #include "chrome/browser/profiles/profile.h" |
42 #include "chrome/browser/profiles/profile_io_data.h" | 41 #include "chrome/browser/profiles/profile_io_data.h" |
43 #include "chrome/browser/search/search.h" | 42 #include "chrome/browser/search/search.h" |
44 #include "chrome/browser/search_engines/search_terms_data.h" | 43 #include "chrome/browser/search_engines/search_terms_data.h" |
45 #include "chrome/browser/search_engines/template_url.h" | 44 #include "chrome/browser/search_engines/template_url.h" |
46 #include "chrome/browser/search_engines/template_url_service.h" | 45 #include "chrome/browser/search_engines/template_url_service.h" |
47 #include "chrome/browser/search_engines/template_url_service_factory.h" | 46 #include "chrome/browser/search_engines/template_url_service_factory.h" |
(...skipping 26 matching lines...) Expand all Loading... |
74 #include "content/public/browser/navigation_entry.h" | 73 #include "content/public/browser/navigation_entry.h" |
75 #include "content/public/browser/notification_service.h" | 74 #include "content/public/browser/notification_service.h" |
76 #include "content/public/browser/render_process_host.h" | 75 #include "content/public/browser/render_process_host.h" |
77 #include "content/public/browser/render_view_host.h" | 76 #include "content/public/browser/render_view_host.h" |
78 #include "content/public/browser/render_widget_host_view.h" | 77 #include "content/public/browser/render_widget_host_view.h" |
79 #include "content/public/browser/user_metrics.h" | 78 #include "content/public/browser/user_metrics.h" |
80 #include "content/public/browser/web_contents.h" | 79 #include "content/public/browser/web_contents.h" |
81 #include "content/public/common/menu_item.h" | 80 #include "content/public/common/menu_item.h" |
82 #include "content/public/common/ssl_status.h" | 81 #include "content/public/common/ssl_status.h" |
83 #include "content/public/common/url_utils.h" | 82 #include "content/public/common/url_utils.h" |
| 83 #include "extensions/browser/extension_system.h" |
84 #include "extensions/browser/view_type_utils.h" | 84 #include "extensions/browser/view_type_utils.h" |
85 #include "extensions/common/extension.h" | 85 #include "extensions/common/extension.h" |
86 #include "grit/generated_resources.h" | 86 #include "grit/generated_resources.h" |
87 #include "net/base/escape.h" | 87 #include "net/base/escape.h" |
88 #include "third_party/WebKit/public/web/WebContextMenuData.h" | 88 #include "third_party/WebKit/public/web/WebContextMenuData.h" |
89 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" | 89 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" |
90 #include "third_party/WebKit/public/web/WebPluginAction.h" | 90 #include "third_party/WebKit/public/web/WebPluginAction.h" |
91 #include "ui/base/clipboard/clipboard.h" | 91 #include "ui/base/clipboard/clipboard.h" |
92 #include "ui/base/l10n/l10n_util.h" | 92 #include "ui/base/l10n/l10n_util.h" |
93 #include "ui/gfx/favicon_size.h" | 93 #include "ui/gfx/favicon_size.h" |
(...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2098 source_web_contents_->GetRenderViewHost()-> | 2098 source_web_contents_->GetRenderViewHost()-> |
2099 ExecuteMediaPlayerActionAtLocation(location, action); | 2099 ExecuteMediaPlayerActionAtLocation(location, action); |
2100 } | 2100 } |
2101 | 2101 |
2102 void RenderViewContextMenu::PluginActionAt( | 2102 void RenderViewContextMenu::PluginActionAt( |
2103 const gfx::Point& location, | 2103 const gfx::Point& location, |
2104 const WebPluginAction& action) { | 2104 const WebPluginAction& action) { |
2105 source_web_contents_->GetRenderViewHost()-> | 2105 source_web_contents_->GetRenderViewHost()-> |
2106 ExecutePluginActionAtLocation(location, action); | 2106 ExecutePluginActionAtLocation(location, action); |
2107 } | 2107 } |
OLD | NEW |