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

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

Issue 2501333003: Event failed to dispatch after stopPropagation (Closed)
Patch Set: After format. Created 4 years, 1 month 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) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 bool composed() const { return m_composed; } 152 bool composed() const { return m_composed; }
153 bool isScopedInV0() const; 153 bool isScopedInV0() const;
154 154
155 // Event creation timestamp in milliseconds. It returns a DOMHighResTimeStamp 155 // Event creation timestamp in milliseconds. It returns a DOMHighResTimeStamp
156 // using the platform timestamp (see |m_platformTimeStamp|). 156 // using the platform timestamp (see |m_platformTimeStamp|).
157 // For more info see http://crbug.com/160524 157 // For more info see http://crbug.com/160524
158 double timeStamp(ScriptState*) const; 158 double timeStamp(ScriptState*) const;
159 double platformTimeStamp() const { return m_platformTimeStamp; } 159 double platformTimeStamp() const { return m_platformTimeStamp; }
160 160
161 void stopPropagation() { m_propagationStopped = true; } 161 void stopPropagation() { m_propagationStopped = true; }
162 void setStopPropagation(bool stopPropagation) {
163 m_propagationStopped = stopPropagation;
164 }
162 void stopImmediatePropagation() { m_immediatePropagationStopped = true; } 165 void stopImmediatePropagation() { m_immediatePropagationStopped = true; }
166 void setStopImmediatePropagation(bool stopImmediatePropagation) {
167 m_immediatePropagationStopped = stopImmediatePropagation;
168 }
163 169
164 // IE Extensions 170 // IE Extensions
165 EventTarget* srcElement() const { 171 EventTarget* srcElement() const {
166 return target(); 172 return target();
167 } // MSIE extension - "the object that fired the event" 173 } // MSIE extension - "the object that fired the event"
168 174
169 bool legacyReturnValue(ExecutionContext*) const; 175 bool legacyReturnValue(ExecutionContext*) const;
170 void setLegacyReturnValue(ExecutionContext*, bool returnValue); 176 void setLegacyReturnValue(ExecutionContext*, bool returnValue);
171 177
172 virtual const AtomicString& interfaceName() const; 178 virtual const AtomicString& interfaceName() const;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 double m_platformTimeStamp; 325 double m_platformTimeStamp;
320 }; 326 };
321 327
322 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ 328 #define DEFINE_EVENT_TYPE_CASTS(typeName) \
323 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \ 329 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \
324 event.is##typeName()) 330 event.is##typeName())
325 331
326 } // namespace blink 332 } // namespace blink
327 333
328 #endif // Event_h 334 #endif // Event_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698