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

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

Issue 1055683003: (NOT FOR REVIEW) Distinguish between touch and touchmove handler presence (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix loading Created 5 years, 3 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 WheelEvent, 32 WheelEvent,
33 TouchEvent, 33 TouchEvent,
34 TouchMoveEvent,
34 #if ENABLE(ASSERT) 35 #if ENABLE(ASSERT)
35 // Additional event categories for verifying handler tracking logic. 36 // Additional event categories for verifying handler tracking logic.
36 EventsForTesting, 37 EventsForTesting,
37 #endif 38 #endif
38 EventHandlerClassCount, // Must be the last entry. 39 EventHandlerClassCount, // Must be the last entry.
39 }; 40 };
40 41
41 // Returns true if the FrameHost has event handlers of the specified class. 42 // Returns true if the FrameHost has event handlers of the specified class.
42 bool hasEventHandlers(EventHandlerClass) const; 43 bool hasEventHandlers(EventHandlerClass) const;
43 44
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 100
100 void checkConsistency() const; 101 void checkConsistency() const;
101 102
102 RawPtrWillBeMember<FrameHost> m_frameHost; 103 RawPtrWillBeMember<FrameHost> m_frameHost;
103 EventTargetSet m_targets[EventHandlerClassCount]; 104 EventTargetSet m_targets[EventHandlerClassCount];
104 }; 105 };
105 106
106 } // namespace blink 107 } // namespace blink
107 108
108 #endif // EventHandlerRegistry_h 109 #endif // EventHandlerRegistry_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/EventHandlerRegistry.cpp » ('j') | Source/core/page/ChromeClient.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698