| 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" |
| 11 #include "modules/vr/VRDisplay.h" | 11 #include "modules/vr/VRDisplay.h" |
| 12 #include "mojo/public/cpp/bindings/binding.h" | 12 #include "mojo/public/cpp/bindings/binding.h" |
| 13 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 14 #include "wtf/Deque.h" | 14 #include "platform/wtf/Deque.h" |
| 15 | 15 |
| 16 #include <memory> | 16 #include <memory> |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class NavigatorVR; | 20 class NavigatorVR; |
| 21 class VRGetDevicesCallback; | 21 class VRGetDevicesCallback; |
| 22 | 22 |
| 23 class VRController final : public GarbageCollectedFinalized<VRController>, | 23 class VRController final : public GarbageCollectedFinalized<VRController>, |
| 24 public device::mojom::blink::VRServiceClient, | 24 public device::mojom::blink::VRServiceClient, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 unsigned number_of_synced_displays_; | 57 unsigned number_of_synced_displays_; |
| 58 | 58 |
| 59 Deque<std::unique_ptr<VRGetDevicesCallback>> pending_get_devices_callbacks_; | 59 Deque<std::unique_ptr<VRGetDevicesCallback>> pending_get_devices_callbacks_; |
| 60 device::mojom::blink::VRServicePtr service_; | 60 device::mojom::blink::VRServicePtr service_; |
| 61 mojo::Binding<device::mojom::blink::VRServiceClient> binding_; | 61 mojo::Binding<device::mojom::blink::VRServiceClient> binding_; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace blink | 64 } // namespace blink |
| 65 | 65 |
| 66 #endif // VRController_h | 66 #endif // VRController_h |
| OLD | NEW |