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

Side by Side Diff: third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp

Issue 1398523002: Use NoBaseWillBeGarbageCollectedFinalized for VRController as other LocalFrame supplements in modul… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRController.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "config.h" 5 #include "config.h"
6 #include "modules/vr/NavigatorVRDevice.h" 6 #include "modules/vr/NavigatorVRDevice.h"
7 7
8 #include "bindings/core/v8/ScriptPromiseResolver.h" 8 #include "bindings/core/v8/ScriptPromiseResolver.h"
9 #include "core/dom/DOMException.h" 9 #include "core/dom/DOMException.h"
10 #include "core/dom/Document.h" 10 #include "core/dom/Document.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 { 76 {
77 visitor->trace(m_hardwareUnits); 77 visitor->trace(m_hardwareUnits);
78 78
79 HeapSupplement<Navigator>::trace(visitor); 79 HeapSupplement<Navigator>::trace(visitor);
80 DOMWindowProperty::trace(visitor); 80 DOMWindowProperty::trace(visitor);
81 } 81 }
82 82
83 NavigatorVRDevice::NavigatorVRDevice(LocalFrame* frame) 83 NavigatorVRDevice::NavigatorVRDevice(LocalFrame* frame)
84 : DOMWindowProperty(frame) 84 : DOMWindowProperty(frame)
85 { 85 {
86 m_hardwareUnits = new VRHardwareUnitCollection(controller()); 86 m_hardwareUnits = new VRHardwareUnitCollection(this);
87 } 87 }
88 88
89 NavigatorVRDevice::~NavigatorVRDevice() 89 NavigatorVRDevice::~NavigatorVRDevice()
90 { 90 {
91 } 91 }
92 92
93 const char* NavigatorVRDevice::supplementName() 93 const char* NavigatorVRDevice::supplementName()
94 { 94 {
95 return "NavigatorVRDevice"; 95 return "NavigatorVRDevice";
96 } 96 }
97 97
98 } // namespace blink 98 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698