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

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

Issue 2916893003: Bookkeep the pointer event listeners added to page (Closed)
Patch Set: Created 3 years, 6 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 EventHandlerRegistry_h 5 #ifndef EventHandlerRegistry_h
6 #define EventHandlerRegistry_h 6 #define EventHandlerRegistry_h
7 7
8 #include "core/CoreExport.h" // TODO(sashab): Remove this. 8 #include "core/CoreExport.h" // TODO(sashab): Remove this.
9 #include "core/page/Page.h" 9 #include "core/page/Page.h"
10 #include "platform/wtf/HashCountedSet.h" 10 #include "platform/wtf/HashCountedSet.h"
(...skipping 19 matching lines...) Expand all
30 // Supported event handler classes. Note that each one may correspond to 30 // Supported event handler classes. Note that each one may correspond to
31 // multiple event types. 31 // multiple event types.
32 enum EventHandlerClass { 32 enum EventHandlerClass {
33 kScrollEvent, 33 kScrollEvent,
34 kWheelEventBlocking, 34 kWheelEventBlocking,
35 kWheelEventPassive, 35 kWheelEventPassive,
36 kTouchStartOrMoveEventBlocking, 36 kTouchStartOrMoveEventBlocking,
37 kTouchStartOrMoveEventPassive, 37 kTouchStartOrMoveEventPassive,
38 kTouchEndOrCancelEventBlocking, 38 kTouchEndOrCancelEventBlocking,
39 kTouchEndOrCancelEventPassive, 39 kTouchEndOrCancelEventPassive,
40 kPointerEvent,
40 #if DCHECK_IS_ON() 41 #if DCHECK_IS_ON()
41 // Additional event categories for verifying handler tracking logic. 42 // Additional event categories for verifying handler tracking logic.
42 kEventsForTesting, 43 kEventsForTesting,
43 #endif 44 #endif
44 kEventHandlerClassCount, // Must be the last entry. 45 kEventHandlerClassCount, // Must be the last entry.
45 }; 46 };
46 47
47 // Returns true if the Page has event handlers of the specified class. 48 // Returns true if the Page has event handlers of the specified class.
48 bool HasEventHandlers(EventHandlerClass) const; 49 bool HasEventHandlers(EventHandlerClass) const;
49 50
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 void CheckConsistency(EventHandlerClass) const; 123 void CheckConsistency(EventHandlerClass) const;
123 124
124 Member<Page> page_; 125 Member<Page> page_;
125 EventTargetSet targets_[kEventHandlerClassCount]; 126 EventTargetSet targets_[kEventHandlerClassCount];
126 }; 127 };
127 128
128 } // namespace blink 129 } // namespace blink
129 130
130 #endif // EventHandlerRegistry_h 131 #endif // EventHandlerRegistry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698