| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |