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

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

Issue 635853002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/frame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/frame/DeviceSingleWindowEventController.h ('k') | Source/core/frame/FrameConsole.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 10
11 namespace blink { 11 namespace blink {
12 12
13 class Document; 13 class Document;
14 class EventTarget; 14 class EventTarget;
15 15
16 typedef HashCountedSet<EventTarget*> EventTargetSet; 16 typedef HashCountedSet<EventTarget*> EventTargetSet;
17 17
18 // Registry for keeping track of event handlers. Note that only handlers on 18 // 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 19 // documents that can be rendered or can receive input (i.e., are attached to a
20 // FrameHost) are registered here. 20 // FrameHost) are registered here.
21 class EventHandlerRegistry FINAL : public NoBaseWillBeGarbageCollectedFinalized< EventHandlerRegistry> { 21 class EventHandlerRegistry final : public NoBaseWillBeGarbageCollectedFinalized< EventHandlerRegistry> {
22 public: 22 public:
23 explicit EventHandlerRegistry(FrameHost&); 23 explicit EventHandlerRegistry(FrameHost&);
24 virtual ~EventHandlerRegistry(); 24 virtual ~EventHandlerRegistry();
25 25
26 // Supported event handler classes. Note that each one may correspond to 26 // Supported event handler classes. Note that each one may correspond to
27 // multiple event types. 27 // multiple event types.
28 enum EventHandlerClass { 28 enum EventHandlerClass {
29 ScrollEvent, 29 ScrollEvent,
30 WheelEvent, 30 WheelEvent,
31 TouchEvent, 31 TouchEvent,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 void checkConsistency() const; 98 void checkConsistency() const;
99 99
100 FrameHost& m_frameHost; 100 FrameHost& m_frameHost;
101 EventTargetSet m_targets[EventHandlerClassCount]; 101 EventTargetSet m_targets[EventHandlerClassCount];
102 }; 102 };
103 103
104 } // namespace blink 104 } // namespace blink
105 105
106 #endif // EventHandlerRegistry_h 106 #endif // EventHandlerRegistry_h
OLDNEW
« no previous file with comments | « Source/core/frame/DeviceSingleWindowEventController.h ('k') | Source/core/frame/FrameConsole.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698