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

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

Issue 417213002: Introduce PlatformEvent to handle Device events, Battery events and Gamepad events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 4 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/frame/DOMWindowLifecycleObserver.h" 8 #include "core/frame/DOMWindowLifecycleObserver.h"
9 #include "core/frame/DeviceEventControllerBase.h" 9 #include "core/frame/PlatformEventController.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class Document; 14 class Document;
15 class Event; 15 class Event;
16 16
17 class DeviceSingleWindowEventController : public NoBaseWillBeGarbageCollectedFin alized<DeviceSingleWindowEventController>, public DeviceEventControllerBase, pub lic DOMWindowLifecycleObserver { 17 class DeviceSingleWindowEventController : public NoBaseWillBeGarbageCollectedFin alized<DeviceSingleWindowEventController>, public PlatformEventController, publi c DOMWindowLifecycleObserver {
18 public: 18 public:
19 virtual ~DeviceSingleWindowEventController(); 19 virtual ~DeviceSingleWindowEventController();
20 20
21 // Inherited from DeviceEventControllerBase. 21 // Inherited from DeviceEventControllerBase.
22 virtual void didUpdateData() OVERRIDE; 22 virtual void didUpdateData() OVERRIDE;
23 virtual void trace(Visitor*); 23 virtual void trace(Visitor*);
24 24
25 // Inherited from DOMWindowLifecycleObserver. 25 // Inherited from DOMWindowLifecycleObserver.
26 virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) OVERR IDE; 26 virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) OVERR IDE;
27 virtual void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) OV ERRIDE; 27 virtual void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) OV ERRIDE;
(...skipping 11 matching lines...) Expand all
39 private: 39 private:
40 Document& document() const { return *m_document; } 40 Document& document() const { return *m_document; }
41 41
42 bool m_needsCheckingNullEvents; 42 bool m_needsCheckingNullEvents;
43 RawPtrWillBeMember<Document> m_document; 43 RawPtrWillBeMember<Document> m_document;
44 }; 44 };
45 45
46 } // namespace blink 46 } // namespace blink
47 47
48 #endif // DeviceSingleWindowEventController_h 48 #endif // DeviceSingleWindowEventController_h
OLDNEW
« no previous file with comments | « Source/core/frame/DeviceEventDispatcherBase.cpp ('k') | Source/core/frame/DeviceSingleWindowEventController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698