| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 DeviceSingleWindowEventController_h | 5 #ifndef DeviceSingleWindowEventController_h |
| 6 #define DeviceSingleWindowEventController_h | 6 #define DeviceSingleWindowEventController_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/frame/DOMWindowLifecycleObserver.h" | 9 #include "core/frame/DOMWindowLifecycleObserver.h" |
| 10 #include "core/frame/PlatformEventController.h" | 10 #include "core/frame/PlatformEventController.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class Document; | 15 class Document; |
| 16 class Event; | 16 class Event; |
| 17 | 17 |
| 18 class CORE_EXPORT DeviceSingleWindowEventController : public NoBaseWillBeGarbage
CollectedFinalized<DeviceSingleWindowEventController>, public PlatformEventContr
oller, public DOMWindowLifecycleObserver { | 18 class CORE_EXPORT DeviceSingleWindowEventController : public NoBaseWillBeGarbage
CollectedFinalized<DeviceSingleWindowEventController>, public PlatformEventContr
oller, public DOMWindowLifecycleObserver { |
| 19 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DeviceSingleWindowEventController); |
| 19 public: | 20 public: |
| 20 virtual ~DeviceSingleWindowEventController(); | 21 virtual ~DeviceSingleWindowEventController(); |
| 21 | 22 |
| 22 // Inherited from DeviceEventControllerBase. | 23 // Inherited from DeviceEventControllerBase. |
| 23 void didUpdateData() override; | 24 void didUpdateData() override; |
| 24 DECLARE_VIRTUAL_TRACE(); | 25 DECLARE_VIRTUAL_TRACE(); |
| 25 | 26 |
| 26 // Inherited from DOMWindowLifecycleObserver. | 27 // Inherited from DOMWindowLifecycleObserver. |
| 27 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override; | 28 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override; |
| 28 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override; | 29 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 40 virtual bool isNullEvent(Event*) const = 0; | 41 virtual bool isNullEvent(Event*) const = 0; |
| 41 | 42 |
| 42 private: | 43 private: |
| 43 bool m_needsCheckingNullEvents; | 44 bool m_needsCheckingNullEvents; |
| 44 RawPtrWillBeMember<Document> m_document; | 45 RawPtrWillBeMember<Document> m_document; |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace blink | 48 } // namespace blink |
| 48 | 49 |
| 49 #endif // DeviceSingleWindowEventController_h | 50 #endif // DeviceSingleWindowEventController_h |
| OLD | NEW |