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

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

Issue 297493004: Move modules-dependent eventtarget code out of core. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
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 15 matching lines...) Expand all
26 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 * 29 *
30 */ 30 */
31 31
32 #ifndef EventTarget_h 32 #ifndef EventTarget_h
33 #define EventTarget_h 33 #define EventTarget_h
34 34
35 #include "core/events/EventListenerMap.h" 35 #include "core/events/EventListenerMap.h"
36 #include "core/events/EventTargetModules.h" // TODO: remove this later http://cr bug.com/371581.
37 #include "core/events/ThreadLocalEventNames.h" 36 #include "core/events/ThreadLocalEventNames.h"
38 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
39 #include "wtf/Forward.h" 38 #include "wtf/Forward.h"
40 39
41 namespace WebCore { 40 namespace WebCore {
42 41
43 class ApplicationCache; 42 class ApplicationCache;
44 class DOMWindow; 43 class DOMWindow;
45 class DedicatedWorkerGlobalScope; 44 class DedicatedWorkerGlobalScope;
46 class Event; 45 class Event;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 virtual void refEventTarget() OVERRIDE FINAL { ref(); } \ 229 virtual void refEventTarget() OVERRIDE FINAL { ref(); } \
231 virtual void derefEventTarget() OVERRIDE FINAL { deref(); } \ 230 virtual void derefEventTarget() OVERRIDE FINAL { deref(); } \
232 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro 231 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro
233 232
234 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou nted. 233 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou nted.
235 // A ref-counted class that uses a different method of refcounting should use DE FINE_EVENT_TARGET_REFCOUNTING directly. 234 // A ref-counted class that uses a different method of refcounting should use DE FINE_EVENT_TARGET_REFCOUNTING directly.
236 // Both of these macros are meant to be placed just before the "public:" section of the class declaration. 235 // Both of these macros are meant to be placed just before the "public:" section of the class declaration.
237 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo unted<className>) 236 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo unted<className>)
238 237
239 #endif // EventTarget_h 238 #endif // EventTarget_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698