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

Side by Side Diff: Source/core/events/EventTarget.h

Issue 1157243007: Oilpan: Remove checkGCInfo (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/platform/heap/TraceTraits.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 bool hasCapturingEventListeners(const AtomicString& eventType); 140 bool hasCapturingEventListeners(const AtomicString& eventType);
141 const EventListenerVector& getEventListeners(const AtomicString& eventType); 141 const EventListenerVector& getEventListeners(const AtomicString& eventType);
142 Vector<AtomicString> eventTypes(); 142 Vector<AtomicString> eventTypes();
143 143
144 bool fireEventListeners(Event*); 144 bool fireEventListeners(Event*);
145 145
146 DEFINE_INLINE_VIRTUAL_TRACE() { } 146 DEFINE_INLINE_VIRTUAL_TRACE() { }
147 147
148 virtual bool keepEventInNode(Event*) { return false; }; 148 virtual bool keepEventInNode(Event*) { return false; };
149 149
150 #if ENABLE(OILPAN)
151 // Needed for TraceTrait<> specialization; see below.
152 void mark(Visitor*) const;
153 #if ENABLE(ASSERT)
154 void checkGCInfo() const;
155 #endif
156 #endif
157
158 protected: 150 protected:
159 EventTarget(); 151 EventTarget();
160 152
161 // Subclasses should likely not override these themselves; instead, they sho uld subclass EventTargetWithInlineData. 153 // Subclasses should likely not override these themselves; instead, they sho uld subclass EventTargetWithInlineData.
162 virtual EventTargetData* eventTargetData() = 0; 154 virtual EventTargetData* eventTargetData() = 0;
163 virtual EventTargetData& ensureEventTargetData() = 0; 155 virtual EventTargetData& ensureEventTargetData() = 0;
164 156
165 private: 157 private:
166 #if !ENABLE(OILPAN) 158 #if !ENABLE(OILPAN)
167 // Subclasses should likely not override these themselves; instead, they sho uld use the REFCOUNTED_EVENT_TARGET() macro. 159 // Subclasses should likely not override these themselves; instead, they sho uld use the REFCOUNTED_EVENT_TARGET() macro.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 #define DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(baseClass) DEFINE_EVENT_ TARGET_REFCOUNTING(baseClass) 298 #define DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(baseClass) DEFINE_EVENT_ TARGET_REFCOUNTING(baseClass)
307 299
308 #endif // ENABLE(OILPAN) 300 #endif // ENABLE(OILPAN)
309 301
310 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou nted. 302 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou nted.
311 // A ref-counted class that uses a different method of refcounting should use DE FINE_EVENT_TARGET_REFCOUNTING directly. 303 // A ref-counted class that uses a different method of refcounting should use DE FINE_EVENT_TARGET_REFCOUNTING directly.
312 // Both of these macros are meant to be placed just before the "public:" section of the class declaration. 304 // Both of these macros are meant to be placed just before the "public:" section of the class declaration.
313 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING_WILL_ BE_REMOVED(RefCounted<className>) 305 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING_WILL_ BE_REMOVED(RefCounted<className>)
314 306
315 #endif // EventTarget_h 307 #endif // EventTarget_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/heap/TraceTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698