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

Unified Diff: third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.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/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
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRDisplay.idl ('k') | third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698