1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "fake_battery_status_dispatcher.h"
8 #include "base/location.h"
9 #include "base/message_loop/message_loop_proxy.h"
10 #include "third_party/WebKit/public/platform/WebBatteryStatusListener.h"
14 FakeBatteryStatusDispatcher::FakeBatteryStatusDispatcher() : listener_(0) {
17 void FakeBatteryStatusDispatcher::SetListener(
18 blink::WebBatteryStatusListener* listener) {
22 void FakeBatteryStatusDispatcher::PostBatteryStatusChange(
23 const blink::WebBatteryStatus& status) {
25 listener_->updateBatteryStatus(status);
28 } // namespace content