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 "content/renderer/compositor_bindings/web_layer_impl.h" |
14 #include "third_party/WebKit/public/platform/WebExternalTextureLayer.h" | 15 #include "third_party/WebKit/public/platform/WebExternalTextureLayer.h" |
15 #include "third_party/WebKit/public/platform/WebExternalTextureLayerClient.h" | 16 #include "third_party/WebKit/public/platform/WebExternalTextureLayerClient.h" |
16 #include "third_party/WebKit/public/platform/WebExternalTextureMailbox.h" | 17 #include "third_party/WebKit/public/platform/WebExternalTextureMailbox.h" |
17 #include "third_party/WebKit/public/web/WebPlugin.h" | 18 #include "third_party/WebKit/public/web/WebPlugin.h" |
18 #include "third_party/WebKit/public/web/WebPluginContainer.h" | 19 #include "third_party/WebKit/public/web/WebPluginContainer.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 } | 23 } |
24 | 24 |
25 namespace content { | 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. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 blink::WebRect m_rect; | 132 blink::WebRect m_rect; |
133 blink::WebGraphicsContext3D* m_context; | 133 blink::WebGraphicsContext3D* m_context; |
134 unsigned m_colorTexture; | 134 unsigned m_colorTexture; |
135 cc::TextureMailbox m_textureMailbox; | 135 cc::TextureMailbox m_textureMailbox; |
136 scoped_ptr<base::SharedMemory> m_sharedBitmap; | 136 scoped_ptr<base::SharedMemory> m_sharedBitmap; |
137 bool m_mailboxChanged; | 137 bool m_mailboxChanged; |
138 unsigned m_framebuffer; | 138 unsigned m_framebuffer; |
139 Scene m_scene; | 139 Scene m_scene; |
140 scoped_refptr<cc::TextureLayer> m_layer; | 140 scoped_refptr<cc::TextureLayer> m_layer; |
141 scoped_ptr<webkit::WebLayerImpl> m_webLayer; | 141 scoped_ptr<WebLayerImpl> m_webLayer; |
142 | 142 |
143 blink::WebPluginContainer::TouchEventRequestType m_touchEventRequest; | 143 blink::WebPluginContainer::TouchEventRequestType m_touchEventRequest; |
144 // Requests touch events from the WebPluginContainerImpl multiple times to t
ickle webkit.org/b/108381 | 144 // Requests touch events from the WebPluginContainerImpl multiple times to t
ickle webkit.org/b/108381 |
145 bool m_reRequestTouchEvents; | 145 bool m_reRequestTouchEvents; |
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 } // namespace content | 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 |