OLD | NEW |
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Record a change operation to a given event handler class and notify any | 91 // Record a change operation to a given event handler class and notify any |
92 // parent registry and other clients accordingly. | 92 // parent registry and other clients accordingly. |
93 void updateEventHandlerOfType(ChangeOperation, const AtomicString& eventType
, EventTarget*); | 93 void updateEventHandlerOfType(ChangeOperation, const AtomicString& eventType
, EventTarget*); |
94 | 94 |
95 void updateEventHandlerInternal(ChangeOperation, EventHandlerClass, EventTar
get*); | 95 void updateEventHandlerInternal(ChangeOperation, EventHandlerClass, EventTar
get*); |
96 | 96 |
97 void updateAllEventHandlers(ChangeOperation, EventTarget&); | 97 void updateAllEventHandlers(ChangeOperation, EventTarget&); |
98 | 98 |
99 void checkConsistency() const; | 99 void checkConsistency() const; |
100 | 100 |
101 FrameHost& m_frameHost; | 101 RawPtrWillBeMember<FrameHost> m_frameHost; |
102 EventTargetSet m_targets[EventHandlerClassCount]; | 102 EventTargetSet m_targets[EventHandlerClassCount]; |
103 }; | 103 }; |
104 | 104 |
105 } // namespace blink | 105 } // namespace blink |
106 | 106 |
107 #endif // EventHandlerRegistry_h | 107 #endif // EventHandlerRegistry_h |
OLD | NEW |