Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(899)

Side by Side Diff: content/shell/renderer/test_runner/TestPlugin.h

Issue 317163002: Moving compositor_bindings from webkit to content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing dependencies due to failing ios bots Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/public/test/layouttest_support.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"
18 #include "third_party/WebKit/public/platform/WebLayer.h"
17 #include "third_party/WebKit/public/web/WebPlugin.h" 19 #include "third_party/WebKit/public/web/WebPlugin.h"
18 #include "third_party/WebKit/public/web/WebPluginContainer.h" 20 #include "third_party/WebKit/public/web/WebPluginContainer.h"
19 #include "webkit/renderer/compositor_bindings/web_layer_impl.h"
20 21
21 namespace blink { 22 namespace blink {
22 class WebFrame; 23 class WebFrame;
24 class WebLayer;
23 } 25 }
24 26
25 namespace content { 27 namespace content {
26 28
27 class WebTestDelegate; 29 class WebTestDelegate;
28 30
29 // A fake implemention of blink::WebPlugin for testing purposes. 31 // A fake implemention of blink::WebPlugin for testing purposes.
30 // 32 //
31 // It uses WebGraphicsContext3D to paint a scene consisiting of a primitive 33 // It uses WebGraphicsContext3D to paint a scene consisiting of a primitive
32 // over a background. The primitive and background can be customized using 34 // over a background. The primitive and background can be customized using
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 133
132 blink::WebRect m_rect; 134 blink::WebRect m_rect;
133 blink::WebGraphicsContext3D* m_context; 135 blink::WebGraphicsContext3D* m_context;
134 unsigned m_colorTexture; 136 unsigned m_colorTexture;
135 cc::TextureMailbox m_textureMailbox; 137 cc::TextureMailbox m_textureMailbox;
136 scoped_ptr<base::SharedMemory> m_sharedBitmap; 138 scoped_ptr<base::SharedMemory> m_sharedBitmap;
137 bool m_mailboxChanged; 139 bool m_mailboxChanged;
138 unsigned m_framebuffer; 140 unsigned m_framebuffer;
139 Scene m_scene; 141 Scene m_scene;
140 scoped_refptr<cc::TextureLayer> m_layer; 142 scoped_refptr<cc::TextureLayer> m_layer;
141 scoped_ptr<webkit::WebLayerImpl> m_webLayer; 143 scoped_ptr<blink::WebLayer> m_webLayer;
142 144
143 blink::WebPluginContainer::TouchEventRequestType m_touchEventRequest; 145 blink::WebPluginContainer::TouchEventRequestType m_touchEventRequest;
144 // Requests touch events from the WebPluginContainerImpl multiple times to t ickle webkit.org/b/108381 146 // Requests touch events from the WebPluginContainerImpl multiple times to t ickle webkit.org/b/108381
145 bool m_reRequestTouchEvents; 147 bool m_reRequestTouchEvents;
146 bool m_printEventDetails; 148 bool m_printEventDetails;
147 bool m_printUserGestureStatus; 149 bool m_printUserGestureStatus;
148 bool m_canProcessDrag; 150 bool m_canProcessDrag;
149 151
150 bool m_isPersistent; 152 bool m_isPersistent;
151 bool m_canCreateWithoutRenderer; 153 bool m_canCreateWithoutRenderer;
152 154
153 DISALLOW_COPY_AND_ASSIGN(TestPlugin); 155 DISALLOW_COPY_AND_ASSIGN(TestPlugin);
154 }; 156 };
155 157
156 } // namespace content 158 } // namespace content
157 159
158 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTPLUGIN_H_ 160 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTPLUGIN_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | content/shell/renderer/test_runner/TestPlugin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698