| 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/PositionSensorVRDevice.h" | 6 #include "modules/vr/PositionSensorVRDevice.h" |
| 7 | 7 |
| 8 #include "public/platform/Platform.h" | 8 #include "public/platform/Platform.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 VRPositionState* PositionSensorVRDevice::getImmediateState() | 23 VRPositionState* PositionSensorVRDevice::getImmediateState() |
| 24 { | 24 { |
| 25 return hardwareUnit()->getPositionState(); | 25 return hardwareUnit()->getPositionState(); |
| 26 } | 26 } |
| 27 | 27 |
| 28 void PositionSensorVRDevice::resetSensor() | 28 void PositionSensorVRDevice::resetSensor() |
| 29 { | 29 { |
| 30 blink::Platform::current()->resetVRSensor(index()); | 30 blink::Platform::current()->resetVRSensor(index()); |
| 31 } | 31 } |
| 32 | 32 |
| 33 void PositionSensorVRDevice::trace(Visitor* visitor) | 33 DEFINE_TRACE(PositionSensorVRDevice) |
| 34 { | 34 { |
| 35 VRDevice::trace(visitor); | 35 VRDevice::trace(visitor); |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace blink | 38 } // namespace blink |
| OLD | NEW |