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

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

Issue 2600593002: Fix touch event flag may not be updated correctly by transform which causes no layout (Closed)
Patch Set: Update the logic to focus on non-passive touchEvents Created 3 years, 11 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 bool dispatchEventForBindings(Event*, ExceptionState&); 151 bool dispatchEventForBindings(Event*, ExceptionState&);
152 virtual void uncaughtExceptionInEventHandler(); 152 virtual void uncaughtExceptionInEventHandler();
153 153
154 // Used for legacy "onEvent" attribute APIs. 154 // Used for legacy "onEvent" attribute APIs.
155 bool setAttributeEventListener(const AtomicString& eventType, EventListener*); 155 bool setAttributeEventListener(const AtomicString& eventType, EventListener*);
156 EventListener* getAttributeEventListener(const AtomicString& eventType); 156 EventListener* getAttributeEventListener(const AtomicString& eventType);
157 157
158 bool hasEventListeners() const; 158 bool hasEventListeners() const;
159 bool hasEventListeners(const AtomicString& eventType) const; 159 bool hasEventListeners(const AtomicString& eventType) const;
160 bool hasCapturingEventListeners(const AtomicString& eventType); 160 bool hasCapturingEventListeners(const AtomicString& eventType);
161 bool hasBlockingEventListeners(const AtomicString& eventType);
161 EventListenerVector* getEventListeners(const AtomicString& eventType); 162 EventListenerVector* getEventListeners(const AtomicString& eventType);
162 Vector<AtomicString> eventTypes(); 163 Vector<AtomicString> eventTypes();
163 164
164 DispatchEventResult fireEventListeners(Event*); 165 DispatchEventResult fireEventListeners(Event*);
165 166
166 static DispatchEventResult dispatchEventResult(const Event&); 167 static DispatchEventResult dispatchEventResult(const Event&);
167 168
168 DEFINE_INLINE_VIRTUAL_TRACE() {} 169 DEFINE_INLINE_VIRTUAL_TRACE() {}
169 170
170 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 171 DECLARE_VIRTUAL_TRACE_WRAPPERS();
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 } 319 }
319 320
320 inline bool EventTarget::hasCapturingEventListeners( 321 inline bool EventTarget::hasCapturingEventListeners(
321 const AtomicString& eventType) { 322 const AtomicString& eventType) {
322 EventTargetData* d = eventTargetData(); 323 EventTargetData* d = eventTargetData();
323 if (!d) 324 if (!d)
324 return false; 325 return false;
325 return d->eventListenerMap.containsCapturing(eventType); 326 return d->eventListenerMap.containsCapturing(eventType);
326 } 327 }
327 328
329 inline bool EventTarget::hasBlockingEventListeners(
330 const AtomicString& eventType) {
331 EventTargetData* d = eventTargetData();
332 if (!d)
333 return false;
334 return d->eventListenerMap.containsBlocking(eventType);
335 }
328 } // namespace blink 336 } // namespace blink
329 337
330 #endif // EventTarget_h 338 #endif // EventTarget_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698