OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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. |
| 4 |
| 5 #include "content/renderer/battery_status/battery_status_event_pump.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 BatteryStatusEventPump::BatteryStatusEventPump() { |
| 10 } |
| 11 |
| 12 BatteryStatusEventPump::~BatteryStatusEventPump() { |
| 13 } |
| 14 |
| 15 void BatteryStatusEventPump::Attach(RenderThread* thread) { |
| 16 if (!thread) |
| 17 return; |
| 18 thread->AddObserver(this); |
| 19 } |
| 20 |
| 21 bool BatteryStatusEventPump::OnControlMessageReceived( |
| 22 const IPC::Message& msg) { |
| 23 bool handled = true; |
| 24 |
| 25 return handled; |
| 26 } |
| 27 |
| 28 void BatteryStatusEventPump::SetBatteryStatusListener( |
| 29 blink::WebBatteryStatusListener* listener) { |
| 30 listener_ = listener; |
| 31 } |
| 32 |
| 33 } // namespace content |
OLD | NEW |