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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/test_runner/WebTestDelegate.h
diff --git a/content/shell/renderer/test_runner/WebTestDelegate.h b/content/shell/renderer/test_runner/WebTestDelegate.h
index 353d13f95b80f478d47b16c2885ea3019382c25b..31a9ad79f25bc8e7a8cba7820d5d316e17c0f50a 100644
--- a/content/shell/renderer/test_runner/WebTestDelegate.h
+++ b/content/shell/renderer/test_runner/WebTestDelegate.h
@@ -15,6 +15,7 @@
#define WEBTESTRUNNER_NEW_HISTORY_CAPTURE
namespace blink {
+class WebBatteryStatus;
class WebDeviceMotionData;
class WebDeviceOrientationData;
class WebFrame;
@@ -59,6 +60,9 @@ public:
// Reset the screen orientation data used for testing.
virtual void resetScreenOrientation() = 0;
+ // Notifies blink about a change in battery status.
+ virtual void didChangeBatteryStatus(const blink::WebBatteryStatus&) = 0;
+
// Add a message to the text dump for the layout test.
virtual void printMessage(const std::string& message) = 0;
« 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