| OLD | NEW |
| 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 #include "modules/battery/BatteryManager.h" | 5 #include "modules/battery/BatteryManager.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/events/Event.h" | 8 #include "core/events/Event.h" |
| 9 #include "modules/battery/BatteryDispatcher.h" | 9 #include "modules/battery/BatteryDispatcher.h" |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 { | 133 { |
| 134 // Prevent V8 from garbage collecting the wrapper object if there are | 134 // Prevent V8 from garbage collecting the wrapper object if there are |
| 135 // event listeners attached to it. | 135 // event listeners attached to it. |
| 136 return hasEventListeners(); | 136 return hasEventListeners(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 DEFINE_TRACE(BatteryManager) | 139 DEFINE_TRACE(BatteryManager) |
| 140 { | 140 { |
| 141 visitor->trace(m_batteryProperty); | 141 visitor->trace(m_batteryProperty); |
| 142 PlatformEventController::trace(visitor); | 142 PlatformEventController::trace(visitor); |
| 143 RefCountedGarbageCollectedEventTargetWithInlineData<BatteryManager>::trace(v
isitor); | 143 EventTargetWithInlineData<BatteryManager>::trace(visitor); |
| 144 ActiveDOMObject::trace(visitor); | 144 ActiveDOMObject::trace(visitor); |
| 145 } | 145 } |
| 146 | 146 |
| 147 } // namespace blink | 147 } // namespace blink |
| OLD | NEW |