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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.h

Issue 258173004: [NO SUBMIT] Battery Status API skeleton implementation ASYNC Base URL: https://chromium.googlesource.com/chromium/src.git@April-17-battery-status-renderer-and-IPC
Patch Set: Created 6 years, 8 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/renderer/renderer_webkitplatformsupport_impl.h
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h
index 5e3ba6937dc066eeabf5b449d1dabf4deea6cd3f..f3eec8a1c28739f17ac5cae6ea52cd0c72621283 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.h
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h
@@ -38,6 +38,7 @@ class WebScreenOrientationListener;
namespace content {
class DeviceMotionEventPump;
class DeviceOrientationEventPump;
+class BatteryStatusDispatcher;
class QuotaMessageFilter;
class RendererClipboardClient;
class ScreenOrientationDispatcher;
@@ -139,6 +140,9 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
blink::WebDeviceMotionListener* listener) OVERRIDE;
virtual void setDeviceOrientationListener(
blink::WebDeviceOrientationListener* listener) OVERRIDE;
+ virtual void setBatteryStatusListener(
+ blink::WebBatteryListener* listener) OVERRIDE;
+
virtual void queryStorageUsageAndQuota(
const blink::WebURL& storage_partition,
blink::WebStorageQuotaType,
@@ -231,6 +235,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_;
+ scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_;
+
DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl);
};

Powered by Google App Engine
This is Rietveld 408576698