OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef VRDisplayCapabilities_h |
| 6 #define VRDisplayCapabilities_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Forward.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class VRDisplayCapabilities final : public GarbageCollected<VRDisplayCapabilitie
s>, public ScriptWrappable { |
| 15 DEFINE_WRAPPERTYPEINFO(); |
| 16 public: |
| 17 VRDisplayCapabilities(); |
| 18 |
| 19 bool hasOrientation() const { return m_hasOriention; } |
| 20 bool hasPosition() const { return m_hasPosition; } |
| 21 bool hasExternalDisplay() const { return m_hasExternalDisplay; } |
| 22 bool canPresent() const { return m_canPresent; } |
| 23 unsigned maxLayers() const { return m_maxLayers; } |
| 24 |
| 25 void setHasOrientation(bool value) { m_hasOriention = value; } |
| 26 void setHasPosition(bool value) { m_hasPosition = value; } |
| 27 void setHasExternalDisplay(bool value) { m_hasExternalDisplay = value; } |
| 28 void setCanPresent(bool value) { m_canPresent = value; } |
| 29 void setMaxLayers(unsigned value) { m_maxLayers = value; } |
| 30 |
| 31 DECLARE_VIRTUAL_TRACE() |
| 32 |
| 33 private: |
| 34 bool m_hasOriention; |
| 35 bool m_hasPosition; |
| 36 bool m_hasExternalDisplay; |
| 37 bool m_canPresent; |
| 38 unsigned m_maxLayers; |
| 39 }; |
| 40 |
| 41 } // namespace blink |
| 42 |
| 43 #endif // VRDisplayCapabilities_h |
OLD | NEW |