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 "content/shell/renderer/test_runner/TestPlugin.h" | 5 #include "content/shell/renderer/test_runner/TestPlugin.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
11 #include "content/public/renderer/render_thread.h" | 11 #include "content/public/renderer/render_thread.h" |
12 #include "content/shell/renderer/test_runner/TestCommon.h" | |
13 #include "content/shell/renderer/test_runner/WebTestDelegate.h" | 12 #include "content/shell/renderer/test_runner/WebTestDelegate.h" |
14 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
15 #include "third_party/skia/include/core/SkCanvas.h" | 14 #include "third_party/skia/include/core/SkCanvas.h" |
16 #include "third_party/skia/include/core/SkColor.h" | 15 #include "third_party/skia/include/core/SkColor.h" |
17 #include "third_party/WebKit/public/platform/Platform.h" | 16 #include "third_party/WebKit/public/platform/Platform.h" |
18 #include "third_party/WebKit/public/platform/WebCompositorSupport.h" | 17 #include "third_party/WebKit/public/platform/WebCompositorSupport.h" |
19 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 18 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
20 #include "third_party/WebKit/public/web/WebFrame.h" | 19 #include "third_party/WebKit/public/web/WebFrame.h" |
21 #include "third_party/WebKit/public/web/WebInputEvent.h" | 20 #include "third_party/WebKit/public/web/WebInputEvent.h" |
22 #include "third_party/WebKit/public/web/WebKit.h" | 21 #include "third_party/WebKit/public/web/WebKit.h" |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 } | 683 } |
685 | 684 |
686 bool TestPlugin::isSupportedMimeType(const WebString& mimeType) | 685 bool TestPlugin::isSupportedMimeType(const WebString& mimeType) |
687 { | 686 { |
688 return mimeType == TestPlugin::mimeType() | 687 return mimeType == TestPlugin::mimeType() |
689 || mimeType == pluginPersistsMimeType() | 688 || mimeType == pluginPersistsMimeType() |
690 || mimeType == canCreateWithoutRendererMimeType(); | 689 || mimeType == canCreateWithoutRendererMimeType(); |
691 } | 690 } |
692 | 691 |
693 } // namespace content | 692 } // namespace content |
OLD | NEW |