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

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

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 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 | Annotate | Revision Log
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
(...skipping 10 matching lines...) Expand all
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 #if ASSERT_ENABLED 31 #if ENABLE(ASSERT)
32 // Additional event categories for verifying handler tracking logic. 32 // Additional event categories for verifying handler tracking logic.
33 EventsForTesting, 33 EventsForTesting,
34 #endif 34 #endif
35 EventHandlerClassCount, // Must be the last entry. 35 EventHandlerClassCount, // Must be the last entry.
36 }; 36 };
37 37
38 // Returns true if the FrameHost has event handlers of the specified class. 38 // Returns true if the FrameHost has event handlers of the specified class.
39 bool hasEventHandlers(EventHandlerClass) const; 39 bool hasEventHandlers(EventHandlerClass) const;
40 40
41 // Returns a set of EventTargets which have registered handlers of the given class. 41 // Returns a set of EventTargets which have registered handlers of the given class.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 void checkConsistency() const; 90 void checkConsistency() const;
91 91
92 FrameHost& m_frameHost; 92 FrameHost& m_frameHost;
93 EventTargetSet m_targets[EventHandlerClassCount]; 93 EventTargetSet m_targets[EventHandlerClassCount];
94 }; 94 };
95 95
96 } // namespace WebCore 96 } // namespace WebCore
97 97
98 #endif // EventHandlerRegistry_h 98 #endif // EventHandlerRegistry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698