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

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

Issue 1895303007: Non passive touch end or touch cancel listeners should not block scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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" 8 #include "core/CoreExport.h"
9 #include "core/frame/FrameHost.h" 9 #include "core/frame/FrameHost.h"
10 #include "wtf/HashCountedSet.h" 10 #include "wtf/HashCountedSet.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 explicit EventHandlerRegistry(FrameHost&); 25 explicit EventHandlerRegistry(FrameHost&);
26 virtual ~EventHandlerRegistry(); 26 virtual ~EventHandlerRegistry();
27 27
28 // Supported event handler classes. Note that each one may correspond to 28 // Supported event handler classes. Note that each one may correspond to
29 // multiple event types. 29 // multiple event types.
30 enum EventHandlerClass { 30 enum EventHandlerClass {
31 ScrollEvent, 31 ScrollEvent,
32 WheelEventBlocking, 32 WheelEventBlocking,
33 WheelEventPassive, 33 WheelEventPassive,
34 TouchEventBlocking, 34 TouchStartOrMoveEventBlocking,
35 TouchEventPassive, 35 TouchStartOrMoveEventPassive,
36 TouchEndOrCancelEventBlocking,
37 TouchEndOrCancelEventPassive,
36 #if ENABLE(ASSERT) 38 #if ENABLE(ASSERT)
37 // Additional event categories for verifying handler tracking logic. 39 // Additional event categories for verifying handler tracking logic.
38 EventsForTesting, 40 EventsForTesting,
39 #endif 41 #endif
40 EventHandlerClassCount, // Must be the last entry. 42 EventHandlerClassCount, // Must be the last entry.
41 }; 43 };
42 44
43 // Returns true if the FrameHost has event handlers of the specified class. 45 // Returns true if the FrameHost has event handlers of the specified class.
44 bool hasEventHandlers(EventHandlerClass) const; 46 bool hasEventHandlers(EventHandlerClass) const;
45 47
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 103
102 void checkConsistency() const; 104 void checkConsistency() const;
103 105
104 Member<FrameHost> m_frameHost; 106 Member<FrameHost> m_frameHost;
105 EventTargetSet m_targets[EventHandlerClassCount]; 107 EventTargetSet m_targets[EventHandlerClassCount];
106 }; 108 };
107 109
108 } // namespace blink 110 } // namespace blink
109 111
110 #endif // EventHandlerRegistry_h 112 #endif // EventHandlerRegistry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698