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

Side by Side Diff: third_party/WebKit/Source/core/frame/DeviceSingleWindowEventController.h

Issue 2134063002: Remove DOMWindowLifecycleObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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 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/LocalDOMWindow.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 GarbageCollectedFin alized<DeviceSingleWindowEventController>, public PlatformEventController, publi c DOMWindowLifecycleObserver { 18 class CORE_EXPORT DeviceSingleWindowEventController : public GarbageCollectedFin alized<DeviceSingleWindowEventController>, public PlatformEventController, publi c LocalDOMWindow::EventListenerObserver {
19 public: 19 public:
20 virtual ~DeviceSingleWindowEventController(); 20 virtual ~DeviceSingleWindowEventController();
21 21
22 // Inherited from DeviceEventControllerBase. 22 // Inherited from DeviceEventControllerBase.
23 void didUpdateData() override; 23 void didUpdateData() override;
24 DECLARE_VIRTUAL_TRACE(); 24 DECLARE_VIRTUAL_TRACE();
25 25
26 // Inherited from DOMWindowLifecycleObserver. 26 // Inherited from LocalDOMWindow::EventListenerObserver.
27 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override; 27 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override;
28 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override; 28 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override;
29 void didRemoveAllEventListeners(LocalDOMWindow*) override; 29 void didRemoveAllEventListeners(LocalDOMWindow*) override;
30 30
31 protected: 31 protected:
32 explicit DeviceSingleWindowEventController(Document&); 32 explicit DeviceSingleWindowEventController(Document&);
33 33
34 Document& document() const { return *m_document; } 34 Document& document() const { return *m_document; }
35 35
36 void dispatchDeviceEvent(Event*); 36 void dispatchDeviceEvent(Event*);
37 37
38 virtual Event* lastEvent() const = 0; 38 virtual Event* lastEvent() const = 0;
39 virtual const AtomicString& eventTypeName() const = 0; 39 virtual const AtomicString& eventTypeName() const = 0;
40 virtual bool isNullEvent(Event*) const = 0; 40 virtual bool isNullEvent(Event*) const = 0;
41 41
42 private: 42 private:
43 bool m_needsCheckingNullEvents; 43 bool m_needsCheckingNullEvents;
44 Member<Document> m_document; 44 Member<Document> m_document;
45 }; 45 };
46 46
47 } // namespace blink 47 } // namespace blink
48 48
49 #endif // DeviceSingleWindowEventController_h 49 #endif // DeviceSingleWindowEventController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698