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

Unified Diff: third_party/WebKit/public/web/WebView.h

Issue 1538803002: Migrates battery_status from content/renderer/ to WebKit/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/public/web/WebView.h
diff --git a/third_party/WebKit/public/web/WebView.h b/third_party/WebKit/public/web/WebView.h
index 18b2e9dd47d0958c1d1ebd9dc4ed86d61e9e7301..00b580637d031d8655cdbcc392e8014b329ad66f 100644
--- a/third_party/WebKit/public/web/WebView.h
+++ b/third_party/WebKit/public/web/WebView.h
@@ -487,6 +487,10 @@ public:
// context's ability to deal with that failure gracefully can be tested.
virtual void forceNextDrawingBufferCreationToFail() = 0;
+ // Updates or resets the battery status.
+ virtual void updateBatteryStatusForTesting(bool charging, double chargingTime, double dischargingTime, double level) = 0;
+ virtual void resetBatteryStatusForTesting() = 0;
+
protected:
~WebView() {}
};

Powered by Google App Engine
This is Rietveld 408576698