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

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

Issue 2317483002: Add support of vrdisplayconnect and vrdisplaydisconnect event (Closed)
Patch Set: fix missing brace Created 4 years, 3 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 NavigatorVR_h 5 #ifndef NavigatorVR_h
6 #define NavigatorVR_h 6 #define NavigatorVR_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "core/frame/DOMWindowProperty.h" 9 #include "core/frame/DOMWindowProperty.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
(...skipping 17 matching lines...) Expand all
28 static NavigatorVR* from(Document&); 28 static NavigatorVR* from(Document&);
29 static NavigatorVR& from(Navigator&); 29 static NavigatorVR& from(Navigator&);
30 virtual ~NavigatorVR(); 30 virtual ~NavigatorVR();
31 31
32 static ScriptPromise getVRDisplays(ScriptState*, Navigator&); 32 static ScriptPromise getVRDisplays(ScriptState*, Navigator&);
33 ScriptPromise getVRDisplays(ScriptState*); 33 ScriptPromise getVRDisplays(ScriptState*);
34 34
35 VRController* controller(); 35 VRController* controller();
36 Document* document(); 36 Document* document();
37 37
38 void fireVREvent(VRDisplayEvent*);
39
38 DECLARE_VIRTUAL_TRACE(); 40 DECLARE_VIRTUAL_TRACE();
39 41
40 private: 42 private:
41 friend class VRDisplay; 43 friend class VRDisplay;
42 friend class VRGetDevicesCallback; 44 friend class VRGetDevicesCallback;
43 45
44 explicit NavigatorVR(LocalFrame*); 46 explicit NavigatorVR(LocalFrame*);
45 47
46 static const char* supplementName(); 48 static const char* supplementName();
47 49
48 void fireVRDisplayPresentChange(VRDisplay*); 50 void fireVRDisplayPresentChange(VRDisplay*);
49 51
50 Member<VRController> m_controller; 52 Member<VRController> m_controller;
51 }; 53 };
52 54
53 } // namespace blink 55 } // namespace blink
54 56
55 #endif // NavigatorVR_h 57 #endif // NavigatorVR_h
OLDNEW
« no previous file with comments | « device/vr/vr_service_impl_unittest.cc ('k') | third_party/WebKit/Source/modules/vr/NavigatorVR.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698