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

Unified Diff: third_party/WebKit/Source/modules/vr/VRHardwareUnit.h

Issue 1918143007: Updated Blink WebVR interfaces to WebVR v1 spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webvr_mojo
Patch Set: Fixed layout test Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/vr/VRHardwareUnit.h
diff --git a/third_party/WebKit/Source/modules/vr/VRHardwareUnit.h b/third_party/WebKit/Source/modules/vr/VRHardwareUnit.h
deleted file mode 100644
index 996513d9f0ccff46119ddd85c11f10827a4e164b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/vr/VRHardwareUnit.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2015 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.
-
-#ifndef VRHardwareUnit_h
-#define VRHardwareUnit_h
-
-#include "modules/vr/VRFieldOfView.h"
-#include "modules/vr/VRPositionState.h"
-#include "platform/heap/Handle.h"
-#include "public/platform/WebThread.h"
-#include "wtf/text/WTFString.h"
-
-namespace blink {
-
-class VRController;
-class VRDevice;
-class HMDVRDevice;
-class NavigatorVRDevice;
-class PositionSensorVRDevice;
-
-enum VREye {
- VREyeLeft,
- VREyeRight,
- VREyeNone,
-};
-
-class VRHardwareUnit : public GarbageCollectedFinalized<VRHardwareUnit>, public WebThread::TaskObserver {
-public:
- explicit VRHardwareUnit(NavigatorVRDevice*);
- virtual ~VRHardwareUnit();
-
- void updateFromWebVRDevice(const WebVRDevice&);
-
- void addDevicesToVector(HeapVector<Member<VRDevice>>&);
-
- virtual unsigned index() const { return m_index; }
- const String& hardwareUnitId() const { return m_hardwareUnitId; }
-
- unsigned frameIndex() const { return m_frameIndex; }
-
- VRController* controller();
-
- // VRController queries
- VRPositionState* getSensorState();
- VRPositionState* getImmediateSensorState(bool updateFrameIndex);
-
- HMDVRDevice* hmd() const { return m_hmd; }
- PositionSensorVRDevice* positionSensor() const { return m_positionSensor; }
-
- DECLARE_VIRTUAL_TRACE();
-
-private:
- // TaskObserver implementation.
- void didProcessTask() override;
- void willProcessTask() override { }
-
- unsigned m_index;
- String m_hardwareUnitId;
- unsigned m_nextDeviceId;
-
- unsigned m_frameIndex;
-
- Member<NavigatorVRDevice> m_navigatorVRDevice;
- Member<VRPositionState> m_positionState;
- bool m_canUpdatePositionState;
-
- // Device types
- Member<HMDVRDevice> m_hmd;
- Member<PositionSensorVRDevice> m_positionSensor;
-};
-
-} // namespace blink
-
-#endif // VRHardwareUnit_h
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.cpp ('k') | third_party/WebKit/Source/modules/vr/VRHardwareUnit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698