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

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

Issue 2196843003: Blink ServiceRegistry -> InterfaceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 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 "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 ServiceRegistry;
22 class VRGetDevicesCallback; 21 class VRGetDevicesCallback;
23 22
24 class VRController final 23 class VRController final
25 : public GarbageCollectedFinalized<VRController> 24 : public GarbageCollectedFinalized<VRController>
26 , public device::blink::VRServiceClient 25 , public device::blink::VRServiceClient
27 , public ContextLifecycleObserver { 26 , public ContextLifecycleObserver {
28 USING_GARBAGE_COLLECTED_MIXIN(VRController); 27 USING_GARBAGE_COLLECTED_MIXIN(VRController);
29 WTF_MAKE_NONCOPYABLE(VRController); 28 WTF_MAKE_NONCOPYABLE(VRController);
30 public: 29 public:
31 VRController(NavigatorVR*); 30 VRController(NavigatorVR*);
(...skipping 24 matching lines...) Expand all
56 VRDisplayVector m_displays; 55 VRDisplayVector m_displays;
57 56
58 Deque<std::unique_ptr<VRGetDevicesCallback>> m_pendingGetDevicesCallbacks; 57 Deque<std::unique_ptr<VRGetDevicesCallback>> m_pendingGetDevicesCallbacks;
59 device::blink::VRServicePtr m_service; 58 device::blink::VRServicePtr m_service;
60 mojo::Binding<device::blink::VRServiceClient> m_binding; 59 mojo::Binding<device::blink::VRServiceClient> m_binding;
61 }; 60 };
62 61
63 } // namespace blink 62 } // namespace blink
64 63
65 #endif // VRController_h 64 #endif // VRController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698