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 <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <set> | 10 #include <set> |
9 #include <utility> | 11 #include <utility> |
10 | 12 |
11 #include "apps/app_load_service.h" | 13 #include "apps/app_load_service.h" |
12 #include "base/command_line.h" | 14 #include "base/command_line.h" |
13 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" |
14 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
15 #include "base/prefs/pref_member.h" | 18 #include "base/prefs/pref_member.h" |
16 #include "base/prefs/pref_service.h" | 19 #include "base/prefs/pref_service.h" |
17 #include "base/stl_util.h" | 20 #include "base/stl_util.h" |
18 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
19 #include "base/strings/stringprintf.h" | 22 #include "base/strings/stringprintf.h" |
20 #include "base/strings/utf_string_conversions.h" | 23 #include "base/strings/utf_string_conversions.h" |
| 24 #include "build/build_config.h" |
21 #include "chrome/app/chrome_command_ids.h" | 25 #include "chrome/app/chrome_command_ids.h" |
22 #include "chrome/browser/app_mode/app_mode_utils.h" | 26 #include "chrome/browser/app_mode/app_mode_utils.h" |
23 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" | 27 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" |
24 #include "chrome/browser/browser_process.h" | 28 #include "chrome/browser/browser_process.h" |
25 #include "chrome/browser/chrome_notification_types.h" | 29 #include "chrome/browser/chrome_notification_types.h" |
26 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" | 30 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" |
27 #include "chrome/browser/devtools/devtools_window.h" | 31 #include "chrome/browser/devtools/devtools_window.h" |
28 #include "chrome/browser/download/download_service.h" | 32 #include "chrome/browser/download/download_service.h" |
29 #include "chrome/browser/download/download_service_factory.h" | 33 #include "chrome/browser/download/download_service_factory.h" |
30 #include "chrome/browser/download/download_stats.h" | 34 #include "chrome/browser/download/download_stats.h" |
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2180 source_web_contents_->GetRenderViewHost()-> | 2184 source_web_contents_->GetRenderViewHost()-> |
2181 ExecuteMediaPlayerActionAtLocation(location, action); | 2185 ExecuteMediaPlayerActionAtLocation(location, action); |
2182 } | 2186 } |
2183 | 2187 |
2184 void RenderViewContextMenu::PluginActionAt( | 2188 void RenderViewContextMenu::PluginActionAt( |
2185 const gfx::Point& location, | 2189 const gfx::Point& location, |
2186 const WebPluginAction& action) { | 2190 const WebPluginAction& action) { |
2187 source_web_contents_->GetRenderViewHost()-> | 2191 source_web_contents_->GetRenderViewHost()-> |
2188 ExecutePluginActionAtLocation(location, action); | 2192 ExecutePluginActionAtLocation(location, action); |
2189 } | 2193 } |
OLD | NEW |