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

Unified Diff: third_party/WebKit/Source/modules/vr/VRDevice.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/VRDevice.h
diff --git a/third_party/WebKit/Source/modules/vr/VRDevice.h b/third_party/WebKit/Source/modules/vr/VRDevice.h
deleted file mode 100644
index 78ba3ea3d61e00dbdd8a8a8719b1b5955c4a7811..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/vr/VRDevice.h
+++ /dev/null
@@ -1,50 +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 VRDevice_h
-#define VRDevice_h
-
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "modules/vr/VRHardwareUnit.h"
-#include "platform/heap/Handle.h"
-#include "wtf/Forward.h"
-#include "wtf/text/WTFString.h"
-
-namespace blink {
-
-class VRController;
-
-class VRDevice : public GarbageCollectedFinalized<VRDevice>, public ScriptWrappable {
- DEFINE_WRAPPERTYPEINFO();
-public:
- virtual ~VRDevice();
-
- unsigned index() const { return m_hardwareUnit->index(); }
- const String& hardwareUnitId() const { return m_hardwareUnit->hardwareUnitId(); }
- const String& deviceId() const { return m_deviceId; }
- const String& deviceName() const { return m_deviceName; }
-
- VRHardwareUnit* hardwareUnit() { return m_hardwareUnit; }
- const VRHardwareUnit* hardwareUnit() const { return m_hardwareUnit; }
-
- VRController* controller() { return m_hardwareUnit->controller(); }
-
- virtual void updateFromWebVRDevice(const WebVRDevice&);
-
- DECLARE_VIRTUAL_TRACE();
-
-protected:
- VRDevice(VRHardwareUnit*, unsigned);
-
-private:
- Member<VRHardwareUnit> m_hardwareUnit;
- String m_deviceId;
- String m_deviceName;
-};
-
-using VRDeviceVector = HeapVector<Member<VRDevice>>;
-
-} // namespace blink
-
-#endif // VRDevice_h
« no previous file with comments | « third_party/WebKit/Source/modules/vr/PositionSensorVRDevice.idl ('k') | third_party/WebKit/Source/modules/vr/VRDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698