| OLD | NEW |
| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 Event(); | 209 Event(); |
| 210 Event(const AtomicString& type, bool canBubble, bool cancelable); | 210 Event(const AtomicString& type, bool canBubble, bool cancelable); |
| 211 Event(const AtomicString& type, bool canBubble, bool cancelable, EventTarget
* relatedTarget); | 211 Event(const AtomicString& type, bool canBubble, bool cancelable, EventTarget
* relatedTarget); |
| 212 Event(const AtomicString& type, bool canBubble, bool cancelable, double plat
formTimeStamp); | 212 Event(const AtomicString& type, bool canBubble, bool cancelable, double plat
formTimeStamp); |
| 213 Event(const AtomicString& type, bool canBubble, bool cancelable, EventTarget
* relatedTarget, double platformTimeStamp); | 213 Event(const AtomicString& type, bool canBubble, bool cancelable, EventTarget
* relatedTarget, double platformTimeStamp); |
| 214 Event(const AtomicString& type, bool canBubble, bool cancelable, bool scoped
); | 214 Event(const AtomicString& type, bool canBubble, bool cancelable, bool scoped
); |
| 215 Event(const AtomicString& type, bool canBubble, bool cancelable, bool scoped
, bool relatedTargetScoped, double platformTimeStamp); | 215 Event(const AtomicString& type, bool canBubble, bool cancelable, bool scoped
, bool relatedTargetScoped, double platformTimeStamp); |
| 216 Event(const AtomicString& type, const EventInit&); | 216 Event(const AtomicString& type, const EventInit&); |
| 217 | 217 |
| 218 virtual void receivedTarget(); | 218 virtual void receivedTarget(); |
| 219 bool dispatched() const { return m_target; } | |
| 220 | 219 |
| 221 void setCanBubble(bool bubble) { m_canBubble = bubble; } | 220 void setCanBubble(bool bubble) { m_canBubble = bubble; } |
| 222 | 221 |
| 223 private: | 222 private: |
| 224 enum EventPathMode { | 223 enum EventPathMode { |
| 225 EmptyAfterDispatch, | 224 EmptyAfterDispatch, |
| 226 NonEmptyAfterDispatch | 225 NonEmptyAfterDispatch |
| 227 }; | 226 }; |
| 228 | 227 |
| 229 HeapVector<Member<EventTarget>> pathInternal(ScriptState*, EventPathMode) co
nst; | 228 HeapVector<Member<EventTarget>> pathInternal(ScriptState*, EventPathMode) co
nst; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 253 // WebInputEvent instance. | 252 // WebInputEvent instance. |
| 254 double m_platformTimeStamp; | 253 double m_platformTimeStamp; |
| 255 }; | 254 }; |
| 256 | 255 |
| 257 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 256 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
| 258 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) | 257 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) |
| 259 | 258 |
| 260 } // namespace blink | 259 } // namespace blink |
| 261 | 260 |
| 262 #endif // Event_h | 261 #endif // Event_h |
| OLD | NEW |