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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
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