| Index: content/renderer/renderer_webkitplatformsupport_impl.cc
|
| diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
|
| index 91906df8dbfc6a5ea5e8767a53602f41fe9c0f80..fa870ec054b77ea95e60a8910d309a4ef6756670 100644
|
| --- a/content/renderer/renderer_webkitplatformsupport_impl.cc
|
| +++ b/content/renderer/renderer_webkitplatformsupport_impl.cc
|
| @@ -38,6 +38,7 @@
|
| #include "content/public/common/content_switches.h"
|
| #include "content/public/common/webplugininfo.h"
|
| #include "content/public/renderer/content_renderer_client.h"
|
| +#include "content/renderer/battery_status/battery_status_dispatcher.h"
|
| #include "content/renderer/device_sensors/device_motion_event_pump.h"
|
| #include "content/renderer/device_sensors/device_orientation_event_pump.h"
|
| #include "content/renderer/dom_storage/webstoragenamespace_impl.h"
|
| @@ -61,6 +62,7 @@
|
| #include "media/filters/stream_parser_factory.h"
|
| #include "net/base/mime_util.h"
|
| #include "net/base/net_util.h"
|
| +#include "third_party/WebKit/public/platform/WebBatteryStatusListener.h"
|
| #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
|
| #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h"
|
| #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h"
|
| @@ -1182,4 +1184,15 @@ void RendererWebKitPlatformSupportImpl::queryStorageUsageAndQuota(
|
| QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
|
| }
|
|
|
| +//------------------------------------------------------------------------------
|
| +
|
| +void RendererWebKitPlatformSupportImpl::setBatteryStatusListener(
|
| + blink::WebBatteryStatusListener* listener) {
|
| + if (!battery_status_dispatcher_) {
|
| + battery_status_dispatcher_.reset(
|
| + new BatteryStatusDispatcher(RenderThreadImpl::current()));
|
| + }
|
| + battery_status_dispatcher_->SetListener(listener);
|
| +}
|
| +
|
| } // namespace content
|
|
|