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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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 27 matching lines...) Expand all
38 device::mojom::blink::VRDisplayClientRequest, 38 device::mojom::blink::VRDisplayClientRequest,
39 device::mojom::blink::VRDisplayInfoPtr) override; 39 device::mojom::blink::VRDisplayInfoPtr) override;
40 40
41 DECLARE_VIRTUAL_TRACE(); 41 DECLARE_VIRTUAL_TRACE();
42 42
43 private: 43 private:
44 void onDisplaysSynced(unsigned); 44 void onDisplaysSynced(unsigned);
45 void onGetDisplays(); 45 void onGetDisplays();
46 46
47 // ContextLifecycleObserver. 47 // ContextLifecycleObserver.
48 void contextDestroyed() override; 48 void contextDestroyed(ExecutionContext*) override;
49 void dispose(); 49 void dispose();
50 50
51 Member<NavigatorVR> m_navigatorVR; 51 Member<NavigatorVR> m_navigatorVR;
52 VRDisplayVector m_displays; 52 VRDisplayVector m_displays;
53 53
54 bool m_displaySynced; 54 bool m_displaySynced;
55 unsigned m_numberOfSyncedDisplays; 55 unsigned m_numberOfSyncedDisplays;
56 56
57 Deque<std::unique_ptr<VRGetDevicesCallback>> m_pendingGetDevicesCallbacks; 57 Deque<std::unique_ptr<VRGetDevicesCallback>> m_pendingGetDevicesCallbacks;
58 device::mojom::blink::VRServicePtr m_service; 58 device::mojom::blink::VRServicePtr m_service;
59 mojo::Binding<device::mojom::blink::VRServiceClient> m_binding; 59 mojo::Binding<device::mojom::blink::VRServiceClient> m_binding;
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif // VRController_h 64 #endif // VRController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698