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

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

Issue 2317483002: Add support of vrdisplayconnect and vrdisplaydisconnect event (Closed)
Patch Set: fix missing brace Created 4 years, 3 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"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 DECLARE_VIRTUAL_TRACE(); 48 DECLARE_VIRTUAL_TRACE();
49 49
50 private: 50 private:
51 // Binding callbacks. 51 // Binding callbacks.
52 void onGetDisplays(mojo::WTFArray<device::blink::VRDisplayPtr>); 52 void onGetDisplays(mojo::WTFArray<device::blink::VRDisplayPtr>);
53 void onPresentComplete(ScriptPromiseResolver*, unsigned index, bool success) ; 53 void onPresentComplete(ScriptPromiseResolver*, unsigned index, bool success) ;
54 54
55 // VRServiceClient. 55 // VRServiceClient.
56 void OnDisplayChanged(device::blink::VRDisplayPtr) override; 56 void OnDisplayChanged(device::blink::VRDisplayPtr) override;
57 void OnExitPresent(unsigned index) override; 57 void OnExitPresent(unsigned index) override;
58 void OnDisplayConnected(device::blink::VRDisplayPtr) override;
59 void OnDisplayDisconnected(unsigned) override;
58 60
59 // ContextLifecycleObserver. 61 // ContextLifecycleObserver.
60 void contextDestroyed() override; 62 void contextDestroyed() override;
61 63
62 Member<NavigatorVR> m_navigatorVR; 64 Member<NavigatorVR> m_navigatorVR;
63 VRDisplayVector m_displays; 65 VRDisplayVector m_displays;
64 66
65 Deque<std::unique_ptr<VRGetDevicesCallback>> m_pendingGetDevicesCallbacks; 67 Deque<std::unique_ptr<VRGetDevicesCallback>> m_pendingGetDevicesCallbacks;
66 device::blink::VRServicePtr m_service; 68 device::blink::VRServicePtr m_service;
67 mojo::Binding<device::blink::VRServiceClient> m_binding; 69 mojo::Binding<device::blink::VRServiceClient> m_binding;
68 }; 70 };
69 71
70 } // namespace blink 72 } // namespace blink
71 73
72 #endif // VRController_h 74 #endif // VRController_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vr/NavigatorVR.cpp ('k') | third_party/WebKit/Source/modules/vr/VRController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698