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/renderer/plugins/chrome_plugin_placeholder.h" | 5 #include "chrome/renderer/plugins/chrome_plugin_placeholder.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/renderer/custom_menu_commands.h" | 23 #include "chrome/renderer/custom_menu_commands.h" |
24 #include "chrome/renderer/plugins/plugin_preroller.h" | 24 #include "chrome/renderer/plugins/plugin_preroller.h" |
25 #include "chrome/renderer/plugins/plugin_uma.h" | 25 #include "chrome/renderer/plugins/plugin_uma.h" |
26 #include "components/strings/grit/components_strings.h" | 26 #include "components/strings/grit/components_strings.h" |
27 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
28 #include "content/public/common/context_menu_params.h" | 28 #include "content/public/common/context_menu_params.h" |
29 #include "content/public/renderer/render_frame.h" | 29 #include "content/public/renderer/render_frame.h" |
30 #include "content/public/renderer/render_thread.h" | 30 #include "content/public/renderer/render_thread.h" |
31 #include "gin/object_template_builder.h" | 31 #include "gin/object_template_builder.h" |
32 #include "third_party/WebKit/public/platform/URLConversion.h" | 32 #include "third_party/WebKit/public/platform/URLConversion.h" |
| 33 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
33 #include "third_party/WebKit/public/web/WebDocument.h" | 34 #include "third_party/WebKit/public/web/WebDocument.h" |
34 #include "third_party/WebKit/public/web/WebInputEvent.h" | |
35 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 35 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
36 #include "third_party/WebKit/public/web/WebScriptSource.h" | 36 #include "third_party/WebKit/public/web/WebScriptSource.h" |
37 #include "third_party/WebKit/public/web/WebView.h" | 37 #include "third_party/WebKit/public/web/WebView.h" |
38 #include "ui/base/l10n/l10n_util.h" | 38 #include "ui/base/l10n/l10n_util.h" |
39 #include "ui/base/resource/resource_bundle.h" | 39 #include "ui/base/resource/resource_bundle.h" |
40 #include "ui/base/webui/jstemplate_builder.h" | 40 #include "ui/base/webui/jstemplate_builder.h" |
41 #include "ui/gfx/geometry/size.h" | 41 #include "ui/gfx/geometry/size.h" |
42 #include "url/origin.h" | 42 #include "url/origin.h" |
43 #include "url/url_util.h" | 43 #include "url/url_util.h" |
44 | 44 |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 | 424 |
425 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 425 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
426 switches::kEnablePluginPlaceholderTesting)) { | 426 switches::kEnablePluginPlaceholderTesting)) { |
427 builder.SetMethod<void (ChromePluginPlaceholder::*)()>( | 427 builder.SetMethod<void (ChromePluginPlaceholder::*)()>( |
428 "didFinishIconRepositionForTesting", | 428 "didFinishIconRepositionForTesting", |
429 &ChromePluginPlaceholder::DidFinishIconRepositionForTestingCallback); | 429 &ChromePluginPlaceholder::DidFinishIconRepositionForTestingCallback); |
430 } | 430 } |
431 | 431 |
432 return builder; | 432 return builder; |
433 } | 433 } |
OLD | NEW |