| 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 VRController_h | 5 #ifndef VRController_h |
| 6 #define VRController_h | 6 #define VRController_h |
| 7 | 7 |
| 8 #include "core/dom/ContextLifecycleObserver.h" | 8 #include "core/dom/ContextLifecycleObserver.h" |
| 9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 10 #include "device/vr/vr_service.mojom-blink.h" | 10 #include "device/vr/vr_service.mojom-blink.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 // Binding callbacks. | 53 // Binding callbacks. |
| 54 void onGetDisplays(mojo::WTFArray<device::blink::VRDisplayPtr>); | 54 void onGetDisplays(mojo::WTFArray<device::blink::VRDisplayPtr>); |
| 55 void onPresentComplete(ScriptPromiseResolver*, unsigned index, bool success); | 55 void onPresentComplete(ScriptPromiseResolver*, unsigned index, bool success); |
| 56 | 56 |
| 57 // VRServiceClient. | 57 // VRServiceClient. |
| 58 void OnDisplayChanged(device::blink::VRDisplayPtr) override; | 58 void OnDisplayChanged(device::blink::VRDisplayPtr) override; |
| 59 void OnExitPresent(unsigned index) override; | 59 void OnExitPresent(unsigned index) override; |
| 60 void OnDisplayConnected(device::blink::VRDisplayPtr) override; | 60 void OnDisplayConnected(device::blink::VRDisplayPtr) override; |
| 61 void OnDisplayDisconnected(unsigned) override; | 61 void OnDisplayDisconnected(unsigned index) override; |
| 62 void OnDisplayBlur(unsigned index) override; |
| 63 void OnDisplayFocus(unsigned index) override; |
| 62 | 64 |
| 63 // ContextLifecycleObserver. | 65 // ContextLifecycleObserver. |
| 64 void contextDestroyed() override; | 66 void contextDestroyed() override; |
| 65 | 67 |
| 66 Member<NavigatorVR> m_navigatorVR; | 68 Member<NavigatorVR> m_navigatorVR; |
| 67 VRDisplayVector m_displays; | 69 VRDisplayVector m_displays; |
| 68 | 70 |
| 69 Deque<std::unique_ptr<VRGetDevicesCallback>> m_pendingGetDevicesCallbacks; | 71 Deque<std::unique_ptr<VRGetDevicesCallback>> m_pendingGetDevicesCallbacks; |
| 70 device::blink::VRServicePtr m_service; | 72 device::blink::VRServicePtr m_service; |
| 71 mojo::Binding<device::blink::VRServiceClient> m_binding; | 73 mojo::Binding<device::blink::VRServiceClient> m_binding; |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 } // namespace blink | 76 } // namespace blink |
| 75 | 77 |
| 76 #endif // VRController_h | 78 #endif // VRController_h |
| OLD | NEW |