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

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

Issue 2007733003: Add UMA metric for tracking root level listeners for blocking touch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 virtual DispatchEventResult dispatchEventInternal(Event*); 167 virtual DispatchEventResult dispatchEventInternal(Event*);
168 168
169 // Subclasses should likely not override these themselves; instead, they sho uld subclass EventTargetWithInlineData. 169 // Subclasses should likely not override these themselves; instead, they sho uld subclass EventTargetWithInlineData.
170 virtual EventTargetData* eventTargetData() = 0; 170 virtual EventTargetData* eventTargetData() = 0;
171 virtual EventTargetData& ensureEventTargetData() = 0; 171 virtual EventTargetData& ensureEventTargetData() = 0;
172 172
173 private: 173 private:
174 LocalDOMWindow* executingWindow(); 174 LocalDOMWindow* executingWindow();
175 void setDefaultAddEventListenerOptions(AddEventListenerOptions&); 175 void setDefaultAddEventListenerOptions(AddEventListenerOptions&);
176 void fireEventListeners(Event*, EventTargetData*, EventListenerVector&); 176 bool fireEventListeners(Event*, EventTargetData*, EventListenerVector&);
177 void countLegacyEvents(const AtomicString& legacyTypeName, EventListenerVect or*, EventListenerVector*); 177 void countLegacyEvents(const AtomicString& legacyTypeName, EventListenerVect or*, EventListenerVector*);
178 178
179 bool clearAttributeEventListener(const AtomicString& eventType); 179 bool clearAttributeEventListener(const AtomicString& eventType);
180 180
181 friend class EventListenerIterator; 181 friend class EventListenerIterator;
182 }; 182 };
183 183
184 // EventTargetData is a GCed object, so it should not be used as a part of 184 // EventTargetData is a GCed object, so it should not be used as a part of
185 // object. However, we intentionally use it as a part of object for performance, 185 // object. However, we intentionally use it as a part of object for performance,
186 // assuming that no one extracts a pointer of 186 // assuming that no one extracts a pointer of
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 { 255 {
256 EventTargetData* d = eventTargetData(); 256 EventTargetData* d = eventTargetData();
257 if (!d) 257 if (!d)
258 return false; 258 return false;
259 return d->eventListenerMap.containsCapturing(eventType); 259 return d->eventListenerMap.containsCapturing(eventType);
260 } 260 }
261 261
262 } // namespace blink 262 } // namespace blink
263 263
264 #endif // EventTarget_h 264 #endif // EventTarget_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.h ('k') | third_party/WebKit/Source/core/events/EventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698