Chromium Code Reviews| 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..548c847fa0e250f3a4eaf7f14b9a0a6ba196872a 100644 |
| --- a/third_party/WebKit/public/web/WebView.h |
| +++ b/third_party/WebKit/public/web/WebView.h |
| @@ -487,6 +487,13 @@ public: |
| // context's ability to deal with that failure gracefully can be tested. |
| virtual void forceNextDrawingBufferCreationToFail() = 0; |
| + // Updates or resets the battery status. |
| + // |
| + // TODO(yukishiino): Remove these two functions from WebView once JS |
| + // bindings of Mojo services get available. |
| + virtual void updateBatteryStatusForTesting(bool charging, double chargingTime, double dischargingTime, double level) = 0; |
|
esprehn
2016/02/18 06:48:13
This should be in platform.
|
| + virtual void resetBatteryStatusForTesting() = 0; |
| + |
| protected: |
| ~WebView() {} |
| }; |