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

Side by Side Diff: third_party/WebKit/Source/modules/battery/BatteryManager.cpp

Issue 1857143002: Oilpan: Remove RefCountedGarbageCollectedEventTargetWithInlineData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 #include "modules/battery/BatteryManager.h" 5 #include "modules/battery/BatteryManager.h"
6 6
7 #include "core/dom/DOMException.h" 7 #include "core/dom/DOMException.h"
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/events/Event.h" 9 #include "core/events/Event.h"
10 #include "modules/battery/BatteryDispatcher.h" 10 #include "modules/battery/BatteryDispatcher.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 { 134 {
135 // Prevent V8 from garbage collecting the wrapper object if there are 135 // Prevent V8 from garbage collecting the wrapper object if there are
136 // event listeners attached to it. 136 // event listeners attached to it.
137 return hasEventListeners(); 137 return hasEventListeners();
138 } 138 }
139 139
140 DEFINE_TRACE(BatteryManager) 140 DEFINE_TRACE(BatteryManager)
141 { 141 {
142 visitor->trace(m_batteryProperty); 142 visitor->trace(m_batteryProperty);
143 PlatformEventController::trace(visitor); 143 PlatformEventController::trace(visitor);
144 RefCountedGarbageCollectedEventTargetWithInlineData<BatteryManager>::trace(v isitor); 144 EventTargetWithInlineData::trace(visitor);
145 ActiveDOMObject::trace(visitor); 145 ActiveDOMObject::trace(visitor);
146 } 146 }
147 147
148 } // namespace blink 148 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698