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

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

Issue 298263002: Battery Status API: add testing support for LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments 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_WEBTESTDELEGATE_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" 10 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
11 #include "third_party/WebKit/public/platform/WebString.h" 11 #include "third_party/WebKit/public/platform/WebString.h"
12 #include "third_party/WebKit/public/platform/WebURL.h" 12 #include "third_party/WebKit/public/platform/WebURL.h"
13 #include "third_party/WebKit/public/platform/WebVector.h" 13 #include "third_party/WebKit/public/platform/WebVector.h"
14 14
15 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE 15 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE
16 16
17 namespace blink { 17 namespace blink {
18 class WebBatteryStatus;
18 class WebDeviceMotionData; 19 class WebDeviceMotionData;
19 class WebDeviceOrientationData; 20 class WebDeviceOrientationData;
20 class WebFrame; 21 class WebFrame;
21 class WebGamepad; 22 class WebGamepad;
22 class WebGamepads; 23 class WebGamepads;
23 class WebHistoryItem; 24 class WebHistoryItem;
24 struct WebRect; 25 struct WebRect;
25 struct WebSize; 26 struct WebSize;
26 struct WebURLError; 27 struct WebURLError;
27 } 28 }
(...skipping 24 matching lines...) Expand all
52 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0; 53 virtual void setDeviceMotionData(const blink::WebDeviceMotionData&) = 0;
53 // Set data to return when registering via Platform::setDeviceOrientationLis tener(). 54 // Set data to return when registering via Platform::setDeviceOrientationLis tener().
54 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData& ) = 0; 55 virtual void setDeviceOrientationData(const blink::WebDeviceOrientationData& ) = 0;
55 56
56 // Set orientation to set when registering via Platform::setScreenOrientatio nListener(). 57 // Set orientation to set when registering via Platform::setScreenOrientatio nListener().
57 virtual void setScreenOrientation(const blink::WebScreenOrientationType&) = 0; 58 virtual void setScreenOrientation(const blink::WebScreenOrientationType&) = 0;
58 59
59 // Reset the screen orientation data used for testing. 60 // Reset the screen orientation data used for testing.
60 virtual void resetScreenOrientation() = 0; 61 virtual void resetScreenOrientation() = 0;
61 62
63 // Notifies blink about a change in battery status.
64 virtual void didChangeBatteryStatus(const blink::WebBatteryStatus&) = 0;
65
62 // Add a message to the text dump for the layout test. 66 // Add a message to the text dump for the layout test.
63 virtual void printMessage(const std::string& message) = 0; 67 virtual void printMessage(const std::string& message) = 0;
64 68
65 // The delegate takes ownership of the WebTask objects and is responsible 69 // The delegate takes ownership of the WebTask objects and is responsible
66 // for deleting them. 70 // for deleting them.
67 virtual void postTask(WebTask*) = 0; 71 virtual void postTask(WebTask*) = 0;
68 virtual void postDelayedTask(WebTask*, long long ms) = 0; 72 virtual void postDelayedTask(WebTask*, long long ms) = 0;
69 73
70 // Register a new isolated filesystem with the given files, and return the 74 // Register a new isolated filesystem with the given files, and return the
71 // new filesystem id. 75 // new filesystem id.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 virtual bool allowExternalPages() = 0; 158 virtual bool allowExternalPages() = 0;
155 159
156 // Returns a text dump the back/forward history for the WebView associated 160 // Returns a text dump the back/forward history for the WebView associated
157 // with the given WebTestProxyBase. 161 // with the given WebTestProxyBase.
158 virtual std::string dumpHistoryForWindow(WebTestProxyBase*) = 0; 162 virtual std::string dumpHistoryForWindow(WebTestProxyBase*) = 0;
159 }; 163 };
160 164
161 } // namespace content 165 } // namespace content
162 166
163 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_ 167 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTDELEGATE_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | content/shell/renderer/test_runner/test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698