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

Side by Side Diff: content/renderer/battery_status/battery_status_event_pump.cc

Issue 258693012: Add BatteryStatusEventPump in Chromium for sending Battery status events Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « content/renderer/battery_status/battery_status_event_pump.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698