Index: third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.h |
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.h b/third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..69cb7034726adfe9e2bc18e77b3a863a3bc56f64 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.h |
@@ -0,0 +1,43 @@ |
+// Copyright 2016 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 VRDisplayCapabilities_h |
+#define VRDisplayCapabilities_h |
+ |
+#include "bindings/core/v8/ScriptWrappable.h" |
+#include "platform/heap/Handle.h" |
+#include "wtf/Forward.h" |
+ |
+namespace blink { |
+ |
+class VRDisplayCapabilities final : public GarbageCollected<VRDisplayCapabilities>, public ScriptWrappable { |
+ DEFINE_WRAPPERTYPEINFO(); |
+public: |
+ VRDisplayCapabilities(); |
+ |
+ bool hasOrientation() const { return m_hasOriention; } |
+ bool hasPosition() const { return m_hasPosition; } |
+ bool hasExternalDisplay() const { return m_hasExternalDisplay; } |
+ bool canPresent() const { return m_canPresent; } |
+ unsigned maxLayers() const { return m_maxLayers; } |
+ |
+ void setHasOrientation(bool value) { m_hasOriention = value; } |
+ void setHasPosition(bool value) { m_hasPosition = value; } |
+ void setHasExternalDisplay(bool value) { m_hasExternalDisplay = value; } |
+ void setCanPresent(bool value) { m_canPresent = value; } |
+ void setMaxLayers(unsigned value) { m_maxLayers = value; } |
+ |
+ DECLARE_VIRTUAL_TRACE() |
+ |
+private: |
+ bool m_hasOriention; |
+ bool m_hasPosition; |
+ bool m_hasExternalDisplay; |
+ bool m_canPresent; |
+ unsigned m_maxLayers; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // VRDisplayCapabilities_h |