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

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

Issue 2471433002: Implement WebVR presentation pausing for VR Shell Menu Mode (Closed)
Patch Set: rebase Created 4 years, 1 month 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 21 matching lines...) Expand all
32 static NavigatorVR* from(Document&); 32 static NavigatorVR* from(Document&);
33 static NavigatorVR& from(Navigator&); 33 static NavigatorVR& from(Navigator&);
34 virtual ~NavigatorVR(); 34 virtual ~NavigatorVR();
35 35
36 static ScriptPromise getVRDisplays(ScriptState*, Navigator&); 36 static ScriptPromise getVRDisplays(ScriptState*, Navigator&);
37 ScriptPromise getVRDisplays(ScriptState*); 37 ScriptPromise getVRDisplays(ScriptState*);
38 38
39 VRController* controller(); 39 VRController* controller();
40 Document* document(); 40 Document* document();
41 41
42 void fireVrDisplayOnBlur(VRDisplay*);
43 void fireVrDisplayOnFocus(VRDisplay*);
42 void fireVREvent(VRDisplayEvent*); 44 void fireVREvent(VRDisplayEvent*);
43 45
44 DECLARE_VIRTUAL_TRACE(); 46 DECLARE_VIRTUAL_TRACE();
45 47
46 private: 48 private:
47 friend class VRDisplay; 49 friend class VRDisplay;
48 friend class VRGetDevicesCallback; 50 friend class VRGetDevicesCallback;
49 51
50 explicit NavigatorVR(LocalFrame*); 52 explicit NavigatorVR(LocalFrame*);
51 53
52 static const char* supplementName(); 54 static const char* supplementName();
53 55
54 void fireVRDisplayPresentChange(VRDisplay*); 56 void fireVRDisplayPresentChange(VRDisplay*);
55 57
56 Member<VRController> m_controller; 58 Member<VRController> m_controller;
57 }; 59 };
58 60
59 } // namespace blink 61 } // namespace blink
60 62
61 #endif // NavigatorVR_h 63 #endif // NavigatorVR_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/EventTypeNames.in ('k') | third_party/WebKit/Source/modules/vr/NavigatorVR.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698