OLD | NEW |
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 Loading... |
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 |
OLD | NEW |