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

Side by Side Diff: webkit/support/webkit_support.h

Issue 12330184: Use different client interface for WebLayerTreeViewForTesting to decouple from WebLayerTreeViewClie… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « webkit/support/test_webkit_platform_support.cc ('k') | webkit/support/webkit_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ 5 #ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_
6 #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ 6 #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 IN_PROCESS_COMMAND_BUFFER 127 IN_PROCESS_COMMAND_BUFFER
128 }; 128 };
129 // Registers which GraphicsContext3D Implementation to use. 129 // Registers which GraphicsContext3D Implementation to use.
130 void SetGraphicsContext3DImplementation(GraphicsContext3DImplementation); 130 void SetGraphicsContext3DImplementation(GraphicsContext3DImplementation);
131 GraphicsContext3DImplementation GetGraphicsContext3DImplementation(); 131 GraphicsContext3DImplementation GetGraphicsContext3DImplementation();
132 132
133 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( 133 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D(
134 const WebKit::WebGraphicsContext3D::Attributes& attributes, 134 const WebKit::WebGraphicsContext3D::Attributes& attributes,
135 WebKit::WebView* web_view); 135 WebKit::WebView* web_view);
136 136
137 class DRTLayerTreeViewClient {
138 public:
139 virtual ~DRTLayerTreeViewClient() { }
140 virtual void Layout() = 0;
141 virtual void ScheduleComposite() = 0;
142 };
143
137 WebKit::WebLayerTreeView* CreateLayerTreeViewSoftware( 144 WebKit::WebLayerTreeView* CreateLayerTreeViewSoftware(
138 WebKit::WebLayerTreeViewClient* client); 145 WebKit::WebLayerTreeViewClient* client);
139 WebKit::WebLayerTreeView* CreateLayerTreeView3d( 146 WebKit::WebLayerTreeView* CreateLayerTreeView3d(
140 WebKit::WebLayerTreeViewClient* client); 147 WebKit::WebLayerTreeViewClient* client);
141 148
149 WebKit::WebLayerTreeView* CreateLayerTreeViewSoftware(
150 DRTLayerTreeViewClient* client);
151 WebKit::WebLayerTreeView* CreateLayerTreeView3d(
152 DRTLayerTreeViewClient* client);
153
142 // ------- URL load mocking. 154 // ------- URL load mocking.
143 // Registers the file at |file_path| to be served when |url| is requested. 155 // Registers the file at |file_path| to be served when |url| is requested.
144 // |response| is the response provided with the contents. 156 // |response| is the response provided with the contents.
145 void RegisterMockedURL(const WebKit::WebURL& url, 157 void RegisterMockedURL(const WebKit::WebURL& url,
146 const WebKit::WebURLResponse& response, 158 const WebKit::WebURLResponse& response,
147 const WebKit::WebString& file_path); 159 const WebKit::WebString& file_path);
148 160
149 // Registers the error to be returned when |url| is requested. 161 // Registers the error to be returned when |url| is requested.
150 void RegisterMockedErrorURL(const WebKit::WebURL& url, 162 void RegisterMockedErrorURL(const WebKit::WebURL& url,
151 const WebKit::WebURLResponse& response, 163 const WebKit::WebURLResponse& response,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 308
297 void EnableWebCoreLogChannels(const std::string& channels); 309 void EnableWebCoreLogChannels(const std::string& channels);
298 310
299 // - Gamepad 311 // - Gamepad
300 312
301 void SetGamepadData(const WebKit::WebGamepads& pads); 313 void SetGamepadData(const WebKit::WebGamepads& pads);
302 314
303 } // namespace webkit_support 315 } // namespace webkit_support
304 316
305 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ 317 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_platform_support.cc ('k') | webkit/support/webkit_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698