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

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

Issue 22564003: Refactoring: Get rid of isDocument() check in EventTarget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Applied the rename. Created 7 years, 4 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/Document.h ('k') | Source/core/dom/EventTarget.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 /* 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 protected: 129 protected:
130 virtual ~EventTarget(); 130 virtual ~EventTarget();
131 131
132 virtual EventTargetData* eventTargetData() = 0; 132 virtual EventTargetData* eventTargetData() = 0;
133 virtual EventTargetData* ensureEventTargetData() = 0; 133 virtual EventTargetData* ensureEventTargetData() = 0;
134 134
135 private: 135 private:
136 virtual void refEventTarget() = 0; 136 virtual void refEventTarget() = 0;
137 virtual void derefEventTarget() = 0; 137 virtual void derefEventTarget() = 0;
138 138
139 DOMWindow* executingWindow();
139 void fireEventListeners(Event*, EventTargetData*, EventListenerVector&); 140 void fireEventListeners(Event*, EventTargetData*, EventListenerVector&);
140 141
141 bool clearAttributeEventListener(const AtomicString& eventType, DOMWrapp erWorld* isolatedWorld); 142 bool clearAttributeEventListener(const AtomicString& eventType, DOMWrapp erWorld* isolatedWorld);
142 143
143 friend class EventListenerIterator; 144 friend class EventListenerIterator;
144 }; 145 };
145 146
146 // FIXME: These macros should be split into separate DEFINE and DECLARE 147 // FIXME: These macros should be split into separate DEFINE and DECLARE
147 // macros to avoid causing so many header includes. 148 // macros to avoid causing so many header includes.
148 #define DEFINE_ATTRIBUTE_EVENT_LISTENER(attribute) \ 149 #define DEFINE_ATTRIBUTE_EVENT_LISTENER(attribute) \
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 { 202 {
202 EventTargetData* d = eventTargetData(); 203 EventTargetData* d = eventTargetData();
203 if (!d) 204 if (!d)
204 return false; 205 return false;
205 return d->eventListenerMap.containsCapturing(eventType); 206 return d->eventListenerMap.containsCapturing(eventType);
206 } 207 }
207 208
208 } // namespace WebCore 209 } // namespace WebCore
209 210
210 #endif // EventTarget_h 211 #endif // EventTarget_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/EventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698