OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Samsung Electronics | 2 * Copyright (C) 2012 Samsung Electronics |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 22 matching lines...) Expand all Loading... |
33 class ScriptExecutionContext; | 33 class ScriptExecutionContext; |
34 | 34 |
35 class BatteryManager : public RefCountedGarbageCollected<BatteryManager>, public
ActiveDOMObject, public EventTarget { | 35 class BatteryManager : public RefCountedGarbageCollected<BatteryManager>, public
ActiveDOMObject, public EventTarget { |
36 DECLARE_GC_INFO | 36 DECLARE_GC_INFO |
37 public: | 37 public: |
38 virtual ~BatteryManager(); | 38 virtual ~BatteryManager(); |
39 static PassRefPtr<BatteryManager> create(Navigator*); | 39 static PassRefPtr<BatteryManager> create(Navigator*); |
40 | 40 |
41 virtual void trace(Visitor*) { } | 41 virtual void trace(Visitor*) { } |
42 | 42 |
43 virtual void visitWith(Visitor* visitor) const OVERRIDE | 43 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
44 { | 44 { |
45 visitor->visit(this); | 45 visitor->mark(this); |
46 } | 46 } |
47 | 47 |
48 // EventTarget implementation. | 48 // EventTarget implementation. |
49 virtual const WTF::AtomicString& interfaceName() const { return eventNames()
.interfaceForBatteryManager; } | 49 virtual const WTF::AtomicString& interfaceName() const { return eventNames()
.interfaceForBatteryManager; } |
50 virtual ScriptExecutionContext* scriptExecutionContext() const { return Acti
veDOMObject::scriptExecutionContext(); } | 50 virtual ScriptExecutionContext* scriptExecutionContext() const { return Acti
veDOMObject::scriptExecutionContext(); } |
51 | 51 |
52 bool charging(); | 52 bool charging(); |
53 double chargingTime(); | 53 double chargingTime(); |
54 double dischargingTime(); | 54 double dischargingTime(); |
55 double level(); | 55 double level(); |
(...skipping 25 matching lines...) Expand all Loading... |
81 BatteryController* m_batteryController; | 81 BatteryController* m_batteryController; |
82 EventTargetData m_eventTargetData; | 82 EventTargetData m_eventTargetData; |
83 RefPtr<BatteryStatus> m_batteryStatus; | 83 RefPtr<BatteryStatus> m_batteryStatus; |
84 }; | 84 }; |
85 | 85 |
86 } | 86 } |
87 | 87 |
88 #endif // BATTERY_STATUS | 88 #endif // BATTERY_STATUS |
89 #endif // BatteryManager_h | 89 #endif // BatteryManager_h |
90 | 90 |
OLD | NEW |