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

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

Issue 1949563002: Retarget mouse event if the target is removed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using event path 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) 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 reserv ed. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 bool defaultHandled() const { return m_defaultHandled; } 178 bool defaultHandled() const { return m_defaultHandled; }
179 void setDefaultHandled() { m_defaultHandled = true; } 179 void setDefaultHandled() { m_defaultHandled = true; }
180 180
181 bool cancelBubble() const { return m_cancelBubble; } 181 bool cancelBubble() const { return m_cancelBubble; }
182 void setCancelBubble(bool cancel) { m_cancelBubble = cancel; } 182 void setCancelBubble(bool cancel) { m_cancelBubble = cancel; }
183 183
184 Event* underlyingEvent() const { return m_underlyingEvent.get(); } 184 Event* underlyingEvent() const { return m_underlyingEvent.get(); }
185 void setUnderlyingEvent(Event*); 185 void setUnderlyingEvent(Event*);
186 186
187 bool hasEventPath() { return m_eventPath; }
187 EventPath& eventPath() { ASSERT(m_eventPath); return *m_eventPath; } 188 EventPath& eventPath() { ASSERT(m_eventPath); return *m_eventPath; }
188 void initEventPath(Node&); 189 void initEventPath(Node&);
189 190
190 HeapVector<Member<EventTarget>> path(ScriptState*) const; 191 HeapVector<Member<EventTarget>> path(ScriptState*) const;
191 HeapVector<Member<EventTarget>> deepPath(ScriptState*) const; 192 HeapVector<Member<EventTarget>> deepPath(ScriptState*) const;
192 193
193 bool isBeingDispatched() const { return eventPhase(); } 194 bool isBeingDispatched() const { return eventPhase(); }
194 195
195 // Events that must not leak across isolated world, similar to how 196 // Events that must not leak across isolated world, similar to how
196 // ErrorEvent behaves, can override this method. 197 // ErrorEvent behaves, can override this method.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // WebInputEvent instance. 253 // WebInputEvent instance.
253 double m_platformTimeStamp; 254 double m_platformTimeStamp;
254 }; 255 };
255 256
256 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ 257 #define DEFINE_EVENT_TYPE_CASTS(typeName) \
257 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t ypeName()) 258 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t ypeName())
258 259
259 } // namespace blink 260 } // namespace blink
260 261
261 #endif // Event_h 262 #endif // Event_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698