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 "components/test_runner/test_plugin.h" | 5 #include "components/test_runner/test_plugin.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/memory/shared_memory.h" | 15 #include "base/memory/shared_memory.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "cc/blink/web_layer_impl.h" | 17 #include "cc/blink/web_layer_impl.h" |
18 #include "cc/layers/texture_layer.h" | 18 #include "cc/layers/texture_layer.h" |
19 #include "cc/resources/shared_bitmap_manager.h" | 19 #include "cc/resources/shared_bitmap_manager.h" |
20 #include "components/test_runner/web_test_delegate.h" | 20 #include "components/test_runner/web_test_delegate.h" |
21 #include "gpu/command_buffer/client/gles2_interface.h" | 21 #include "gpu/command_buffer/client/gles2_interface.h" |
22 #include "third_party/WebKit/public/platform/Platform.h" | 22 #include "third_party/WebKit/public/platform/Platform.h" |
23 #include "third_party/WebKit/public/platform/WebCompositorSupport.h" | 23 #include "third_party/WebKit/public/platform/WebCompositorSupport.h" |
24 #include "third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h" | 24 #include "third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h" |
| 25 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
25 #include "third_party/WebKit/public/platform/WebTaskRunner.h" | 26 #include "third_party/WebKit/public/platform/WebTaskRunner.h" |
26 #include "third_party/WebKit/public/platform/WebThread.h" | 27 #include "third_party/WebKit/public/platform/WebThread.h" |
| 28 #include "third_party/WebKit/public/platform/WebTouchPoint.h" |
27 #include "third_party/WebKit/public/platform/WebTraceLocation.h" | 29 #include "third_party/WebKit/public/platform/WebTraceLocation.h" |
28 #include "third_party/WebKit/public/platform/WebURL.h" | 30 #include "third_party/WebKit/public/platform/WebURL.h" |
29 #include "third_party/WebKit/public/web/WebFrame.h" | 31 #include "third_party/WebKit/public/web/WebFrame.h" |
30 #include "third_party/WebKit/public/web/WebInputEvent.h" | |
31 #include "third_party/WebKit/public/web/WebKit.h" | 32 #include "third_party/WebKit/public/web/WebKit.h" |
32 #include "third_party/WebKit/public/web/WebPluginParams.h" | 33 #include "third_party/WebKit/public/web/WebPluginParams.h" |
33 #include "third_party/WebKit/public/web/WebTouchPoint.h" | |
34 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" | 34 #include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
35 #include "third_party/skia/include/core/SkBitmap.h" | 35 #include "third_party/skia/include/core/SkBitmap.h" |
36 #include "third_party/skia/include/core/SkCanvas.h" | 36 #include "third_party/skia/include/core/SkCanvas.h" |
37 #include "third_party/skia/include/core/SkColor.h" | 37 #include "third_party/skia/include/core/SkColor.h" |
38 #include "third_party/skia/include/core/SkPaint.h" | 38 #include "third_party/skia/include/core/SkPaint.h" |
39 #include "third_party/skia/include/core/SkPath.h" | 39 #include "third_party/skia/include/core/SkPath.h" |
40 | 40 |
41 namespace test_runner { | 41 namespace test_runner { |
42 | 42 |
43 namespace { | 43 namespace { |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 return kPluginPersistsMimeType; | 732 return kPluginPersistsMimeType; |
733 } | 733 } |
734 | 734 |
735 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) { | 735 bool TestPlugin::IsSupportedMimeType(const blink::WebString& mime_type) { |
736 return mime_type == TestPlugin::MimeType() || | 736 return mime_type == TestPlugin::MimeType() || |
737 mime_type == PluginPersistsMimeType() || | 737 mime_type == PluginPersistsMimeType() || |
738 mime_type == CanCreateWithoutRendererMimeType(); | 738 mime_type == CanCreateWithoutRendererMimeType(); |
739 } | 739 } |
740 | 740 |
741 } // namespace test_runner | 741 } // namespace test_runner |
OLD | NEW |