| 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 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTPLUGIN_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTPLUGIN_H_ |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTPLUGIN_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTPLUGIN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "cc/layers/texture_layer.h" | 12 #include "cc/layers/texture_layer.h" |
| 13 #include "cc/layers/texture_layer_client.h" | 13 #include "cc/layers/texture_layer_client.h" |
| 14 #include "third_party/WebKit/public/platform/WebExternalTextureLayer.h" | 14 #include "third_party/WebKit/public/platform/WebExternalTextureLayer.h" |
| 15 #include "third_party/WebKit/public/platform/WebExternalTextureLayerClient.h" | 15 #include "third_party/WebKit/public/platform/WebExternalTextureLayerClient.h" |
| 16 #include "third_party/WebKit/public/platform/WebExternalTextureMailbox.h" | 16 #include "third_party/WebKit/public/platform/WebExternalTextureMailbox.h" |
| 17 #include "third_party/WebKit/public/web/WebPlugin.h" | 17 #include "third_party/WebKit/public/web/WebPlugin.h" |
| 18 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 18 #include "third_party/WebKit/public/web/WebPluginContainer.h" |
| 19 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" | 19 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" |
| 20 | 20 |
| 21 namespace blink { | 21 namespace blink { |
| 22 class WebFrame; | 22 class WebFrame; |
| 23 } // namespace blink | 23 } |
| 24 | 24 |
| 25 namespace WebTestRunner { | 25 namespace content { |
| 26 | 26 |
| 27 class WebTestDelegate; | 27 class WebTestDelegate; |
| 28 | 28 |
| 29 // A fake implemention of blink::WebPlugin for testing purposes. | 29 // A fake implemention of blink::WebPlugin for testing purposes. |
| 30 // | 30 // |
| 31 // It uses WebGraphicsContext3D to paint a scene consisiting of a primitive | 31 // It uses WebGraphicsContext3D to paint a scene consisiting of a primitive |
| 32 // over a background. The primitive and background can be customized using | 32 // over a background. The primitive and background can be customized using |
| 33 // the following plugin parameters: | 33 // the following plugin parameters: |
| 34 // primitive: none (default), triangle. | 34 // primitive: none (default), triangle. |
| 35 // background-color: black (default), red, green, blue. | 35 // background-color: black (default), red, green, blue. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 bool m_printEventDetails; | 146 bool m_printEventDetails; |
| 147 bool m_printUserGestureStatus; | 147 bool m_printUserGestureStatus; |
| 148 bool m_canProcessDrag; | 148 bool m_canProcessDrag; |
| 149 | 149 |
| 150 bool m_isPersistent; | 150 bool m_isPersistent; |
| 151 bool m_canCreateWithoutRenderer; | 151 bool m_canCreateWithoutRenderer; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(TestPlugin); | 153 DISALLOW_COPY_AND_ASSIGN(TestPlugin); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } | 156 } // namespace content |
| 157 | 157 |
| 158 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTPLUGIN_H_ | 158 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTPLUGIN_H_ |
| OLD | NEW |