| Index: Source/modules/vr/PositionSensorVRDevice.cpp
|
| diff --git a/Source/modules/vr/PositionSensorVRDevice.cpp b/Source/modules/vr/PositionSensorVRDevice.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..958415eec0caa780e97718179a8c7cf5f0db0ec6
|
| --- /dev/null
|
| +++ b/Source/modules/vr/PositionSensorVRDevice.cpp
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "config.h"
|
| +#include "modules/vr/PositionSensorVRDevice.h"
|
| +
|
| +#include "public/platform/Platform.h"
|
| +
|
| +namespace blink {
|
| +
|
| +PositionSensorVRDevice::PositionSensorVRDevice(VRHardwareUnit* hardwareUnit)
|
| + : VRDevice(hardwareUnit)
|
| +{
|
| +}
|
| +
|
| +VRPositionState* PositionSensorVRDevice::getState(double timeOffset)
|
| +{
|
| + return hardwareUnit()->getPositionState(timeOffset);
|
| +}
|
| +
|
| +void PositionSensorVRDevice::zeroSensor()
|
| +{
|
| + blink::Platform::current()->resetVRSensor(index());
|
| +}
|
| +
|
| +void PositionSensorVRDevice::trace(Visitor* visitor)
|
| +{
|
| + VRDevice::trace(visitor);
|
| +}
|
| +
|
| +} // namespace blink
|
|
|