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

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRDisplayCapabilities.h

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