| 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/frame/LocalFrameLifecycleObserver.h" | 8 #include "core/frame/LocalFrameLifecycleObserver.h" |
| 9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
| 10 #include "platform/Supplementable.h" | 10 #include "platform/Supplementable.h" |
| 11 #include "platform/vr/vr_dispatcher.h" |
| 11 #include "public/platform/modules/vr/WebVR.h" | 12 #include "public/platform/modules/vr/WebVR.h" |
| 12 #include "public/platform/modules/vr/WebVRClient.h" | 13 #include "public/platform/modules/vr/WebVRClient.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 class MODULES_EXPORT VRController final | 17 class MODULES_EXPORT VRController final |
| 17 : public NoBaseWillBeGarbageCollectedFinalized<VRController> | 18 : public NoBaseWillBeGarbageCollectedFinalized<VRController> |
| 18 , public WillBeHeapSupplement<LocalFrame> | 19 , public WillBeHeapSupplement<LocalFrame> |
| 19 , public LocalFrameLifecycleObserver { | 20 , public LocalFrameLifecycleObserver { |
| 20 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(VRController); | 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(VRController); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 static const char* supplementName(); | 34 static const char* supplementName(); |
| 34 | 35 |
| 35 DECLARE_VIRTUAL_TRACE(); | 36 DECLARE_VIRTUAL_TRACE(); |
| 36 | 37 |
| 37 private: | 38 private: |
| 38 VRController(LocalFrame&, WebVRClient*); | 39 VRController(LocalFrame&, WebVRClient*); |
| 39 | 40 |
| 40 // Inherited from LocalFrameLifecycleObserver. | 41 // Inherited from LocalFrameLifecycleObserver. |
| 41 void willDetachFrameHost() override; | 42 void willDetachFrameHost() override; |
| 42 | 43 |
| 43 WebVRClient* m_client; | 44 RawPtrWillBeMember<VRDispatcher> m_client; |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 } // namespace blink | 47 } // namespace blink |
| 47 | 48 |
| 48 #endif // VRController_h | 49 #endif // VRController_h |
| OLD | NEW |