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

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

Issue 1142463002: Plumb dependencies on content from test plugin through the delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « content/shell/renderer/test_runner/test_plugin.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WEB_TEST_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h"
10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" 11 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
11 #include "third_party/WebKit/public/platform/WebString.h" 12 #include "third_party/WebKit/public/platform/WebString.h"
12 #include "third_party/WebKit/public/platform/WebURL.h" 13 #include "third_party/WebKit/public/platform/WebURL.h"
13 #include "third_party/WebKit/public/platform/WebVector.h" 14 #include "third_party/WebKit/public/platform/WebVector.h"
14 15
15 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE 16 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE
16 17
17 namespace blink { 18 namespace blink {
18 class WebBatteryStatus; 19 class WebBatteryStatus;
19 class WebDeviceMotionData; 20 class WebDeviceMotionData;
20 class WebDeviceOrientationData; 21 class WebDeviceOrientationData;
21 class WebFrame; 22 class WebFrame;
22 class WebGamepad; 23 class WebGamepad;
23 class WebGamepads; 24 class WebGamepads;
24 class WebHistoryItem; 25 class WebHistoryItem;
26 class WebLayer;
25 struct WebRect; 27 struct WebRect;
26 struct WebSize; 28 struct WebSize;
27 struct WebURLError; 29 struct WebURLError;
28 } 30 }
29 31
32 namespace cc {
33 class TextureLayer;
34 class SharedBitmapManager;
35 }
36
30 namespace content { 37 namespace content {
31 38
32 class DeviceLightData; 39 class DeviceLightData;
33 class RendererGamepadProvider; 40 class RendererGamepadProvider;
34 class WebTask; 41 class WebTask;
35 class WebTestProxyBase; 42 class WebTestProxyBase;
36 struct TestPreferences; 43 struct TestPreferences;
37 44
38 class WebTestDelegate { 45 class WebTestDelegate {
39 public: 46 public:
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 204
198 // Sends a message to the LayoutTestPermissionManager in order for it to 205 // Sends a message to the LayoutTestPermissionManager in order for it to
199 // update its database. 206 // update its database.
200 virtual void SetPermission(const std::string& permission_name, 207 virtual void SetPermission(const std::string& permission_name,
201 const std::string& permission_value, 208 const std::string& permission_value,
202 const GURL& origin, 209 const GURL& origin,
203 const GURL& embedding_origin) = 0; 210 const GURL& embedding_origin) = 0;
204 211
205 // Clear all the permissions set via SetPermission(). 212 // Clear all the permissions set via SetPermission().
206 virtual void ResetPermissions() = 0; 213 virtual void ResetPermissions() = 0;
214
215 // Instantiates WebLayerImpl for TestPlugin.
216 virtual blink::WebLayer* InstantiateWebLayer(
217 scoped_refptr<cc::TextureLayer> layer) = 0;
218
219 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
207 }; 220 };
208 221
209 } // namespace content 222 } // namespace content
210 223
211 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_ 224 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/test_plugin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698