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

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

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 7 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
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/EventHandlerRegistry.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/dom/DocumentSupplementable.h" 8 #include "core/dom/DocumentSupplementable.h"
9 #include "core/events/Event.h" 9 #include "core/events/Event.h"
10 #include "wtf/HashCountedSet.h" 10 #include "wtf/HashCountedSet.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // Registration and management of event handlers attached to EventTargets. 43 // Registration and management of event handlers attached to EventTargets.
44 void didAddEventHandler(EventTarget&, const AtomicString& eventType); 44 void didAddEventHandler(EventTarget&, const AtomicString& eventType);
45 void didAddEventHandler(EventTarget&, EventHandlerClass); 45 void didAddEventHandler(EventTarget&, EventHandlerClass);
46 void didRemoveEventHandler(EventTarget&, const AtomicString& eventType); 46 void didRemoveEventHandler(EventTarget&, const AtomicString& eventType);
47 void didRemoveEventHandler(EventTarget&, EventHandlerClass); 47 void didRemoveEventHandler(EventTarget&, EventHandlerClass);
48 void didMoveFromOtherDocument(EventTarget&, Document& oldDocument); 48 void didMoveFromOtherDocument(EventTarget&, Document& oldDocument);
49 void didRemoveAllEventHandlers(EventTarget&); 49 void didRemoveAllEventHandlers(EventTarget&);
50 50
51 virtual void trace(Visitor*) OVERRIDE { } 51 virtual void trace(Visitor*) OVERRIDE { }
52 void clearWeakMembers(Visitor*);
52 53
53 private: 54 private:
54 explicit EventHandlerRegistry(Document&); 55 explicit EventHandlerRegistry(Document&);
55 56
56 enum ChangeOperation { 57 enum ChangeOperation {
57 Add, // Add a new event handler. 58 Add, // Add a new event handler.
58 Remove, // Remove an existing event handler. 59 Remove, // Remove an existing event handler.
59 RemoveAll // Remove any and all existing event handlers for a given targ et. 60 RemoveAll // Remove any and all existing event handlers for a given targ et.
60 }; 61 };
61 62
(...skipping 23 matching lines...) Expand all
85 OwnPtr<EventTargetSet> targets; 86 OwnPtr<EventTargetSet> targets;
86 }; 87 };
87 88
88 Document& m_document; 89 Document& m_document;
89 HandlerState m_eventHandlers[EventHandlerClassCount]; 90 HandlerState m_eventHandlers[EventHandlerClassCount];
90 }; 91 };
91 92
92 } // namespace WebCore 93 } // namespace WebCore
93 94
94 #endif // EventHandlerRegistry_h 95 #endif // EventHandlerRegistry_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/EventHandlerRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698