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

Side by Side Diff: sky/engine/core/frame/EventHandlerRegistry.h

Issue 709203002: Remove more oilpan. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/fetch/ResourceLoaderSet.h ('k') | sky/engine/core/frame/Frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 EventHandlerRegistry_h 5 #ifndef EventHandlerRegistry_h
6 #define EventHandlerRegistry_h 6 #define EventHandlerRegistry_h
7 7
8 #include "core/frame/FrameHost.h" 8 #include "core/frame/FrameHost.h"
9 #include "wtf/HashCountedSet.h" 9 #include "wtf/HashCountedSet.h"
10 #include "wtf/text/AtomicString.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 class Document; 14 class Document;
14 class EventTarget; 15 class EventTarget;
15 16
16 typedef HashCountedSet<EventTarget*> EventTargetSet; 17 typedef HashCountedSet<EventTarget*> EventTargetSet;
17 18
18 // Registry for keeping track of event handlers. Note that only handlers on 19 // Registry for keeping track of event handlers. Note that only handlers on
19 // documents that can be rendered or can receive input (i.e., are attached to a 20 // documents that can be rendered or can receive input (i.e., are attached to a
20 // FrameHost) are registered here. 21 // FrameHost) are registered here.
21 class EventHandlerRegistry final : public DummyBase<EventHandlerRegistry> { 22 class EventHandlerRegistry final {
22 public: 23 public:
23 explicit EventHandlerRegistry(FrameHost&); 24 explicit EventHandlerRegistry(FrameHost&);
24 virtual ~EventHandlerRegistry(); 25 virtual ~EventHandlerRegistry();
25 26
26 // Supported event handler classes. Note that each one may correspond to 27 // Supported event handler classes. Note that each one may correspond to
27 // multiple event types. 28 // multiple event types.
28 enum EventHandlerClass { 29 enum EventHandlerClass {
29 ScrollEvent, 30 ScrollEvent,
30 WheelEvent, 31 WheelEvent,
31 TouchEvent, 32 TouchEvent,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 95
95 void checkConsistency() const; 96 void checkConsistency() const;
96 97
97 FrameHost& m_frameHost; 98 FrameHost& m_frameHost;
98 EventTargetSet m_targets[EventHandlerClassCount]; 99 EventTargetSet m_targets[EventHandlerClassCount];
99 }; 100 };
100 101
101 } // namespace blink 102 } // namespace blink
102 103
103 #endif // EventHandlerRegistry_h 104 #endif // EventHandlerRegistry_h
OLDNEW
« no previous file with comments | « sky/engine/core/fetch/ResourceLoaderSet.h ('k') | sky/engine/core/frame/Frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698