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

Side by Side Diff: Source/modules/battery/BatteryManager.h

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BatteryManager_h 5 #ifndef BatteryManager_h
6 #define BatteryManager_h 6 #define BatteryManager_h
7 7
8 #include "core/dom/ContextLifecycleObserver.h" 8 #include "core/dom/ContextLifecycleObserver.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
(...skipping 17 matching lines...) Expand all
28 bool charging(); 28 bool charging();
29 double chargingTime(); 29 double chargingTime();
30 double dischargingTime(); 30 double dischargingTime();
31 double level(); 31 double level();
32 32
33 DEFINE_ATTRIBUTE_EVENT_LISTENER(chargingchange); 33 DEFINE_ATTRIBUTE_EVENT_LISTENER(chargingchange);
34 DEFINE_ATTRIBUTE_EVENT_LISTENER(chargingtimechange); 34 DEFINE_ATTRIBUTE_EVENT_LISTENER(chargingtimechange);
35 DEFINE_ATTRIBUTE_EVENT_LISTENER(dischargingtimechange); 35 DEFINE_ATTRIBUTE_EVENT_LISTENER(dischargingtimechange);
36 DEFINE_ATTRIBUTE_EVENT_LISTENER(levelchange); 36 DEFINE_ATTRIBUTE_EVENT_LISTENER(levelchange);
37 37
38 void didChangeBatteryStatus(PassRefPtr<Event>, PassOwnPtr<BatteryStatus>); 38 void didChangeBatteryStatus(PassRefPtrWillBeRawPtr<Event>, PassOwnPtr<Batter yStatus>);
39 39
40 void trace(Visitor*) { } 40 void trace(Visitor*) { }
41 41
42 private: 42 private:
43 explicit BatteryManager(ExecutionContext*); 43 explicit BatteryManager(ExecutionContext*);
44 44
45 OwnPtr<BatteryStatus> m_batteryStatus; 45 OwnPtr<BatteryStatus> m_batteryStatus;
46 }; 46 };
47 47
48 } 48 }
49 49
50 #endif // BatteryManager_h 50 #endif // BatteryManager_h
51 51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698