| 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 | 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 double platformTimeStamp); | 258 double platformTimeStamp); |
| 259 Event(const AtomicString& type, | 259 Event(const AtomicString& type, |
| 260 bool canBubble, | 260 bool canBubble, |
| 261 bool cancelable, | 261 bool cancelable, |
| 262 ComposedMode = ComposedMode::Scoped); | 262 ComposedMode = ComposedMode::Scoped); |
| 263 Event(const AtomicString& type, const EventInit&); | 263 Event(const AtomicString& type, const EventInit&); |
| 264 | 264 |
| 265 virtual void receivedTarget(); | 265 virtual void receivedTarget(); |
| 266 | 266 |
| 267 void setCanBubble(bool bubble) { m_canBubble = bubble; } | 267 void setCanBubble(bool bubble) { m_canBubble = bubble; } |
| 268 void setComposed(bool composed) { |
| 269 DCHECK(!isBeingDispatched()); |
| 270 m_composed = composed; |
| 271 } |
| 268 | 272 |
| 269 PassiveMode handlingPassive() const { return m_handlingPassive; } | 273 PassiveMode handlingPassive() const { return m_handlingPassive; } |
| 270 | 274 |
| 271 private: | 275 private: |
| 272 enum EventPathMode { EmptyAfterDispatch, NonEmptyAfterDispatch }; | 276 enum EventPathMode { EmptyAfterDispatch, NonEmptyAfterDispatch }; |
| 273 | 277 |
| 274 HeapVector<Member<EventTarget>> pathInternal(ScriptState*, | 278 HeapVector<Member<EventTarget>> pathInternal(ScriptState*, |
| 275 EventPathMode) const; | 279 EventPathMode) const; |
| 276 | 280 |
| 277 AtomicString m_type; | 281 AtomicString m_type; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 306 double m_platformTimeStamp; | 310 double m_platformTimeStamp; |
| 307 }; | 311 }; |
| 308 | 312 |
| 309 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 313 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
| 310 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \ | 314 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \ |
| 311 event.is##typeName()) | 315 event.is##typeName()) |
| 312 | 316 |
| 313 } // namespace blink | 317 } // namespace blink |
| 314 | 318 |
| 315 #endif // Event_h | 319 #endif // Event_h |
| OLD | NEW |