| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 bool cancelable, | 274 bool cancelable, |
| 275 ComposedMode = ComposedMode::Scoped); | 275 ComposedMode = ComposedMode::Scoped); |
| 276 Event(const AtomicString& type, const EventInit&); | 276 Event(const AtomicString& type, const EventInit&); |
| 277 | 277 |
| 278 virtual void receivedTarget(); | 278 virtual void receivedTarget(); |
| 279 | 279 |
| 280 void setCanBubble(bool bubble) { m_canBubble = bubble; } | 280 void setCanBubble(bool bubble) { m_canBubble = bubble; } |
| 281 | 281 |
| 282 PassiveMode handlingPassive() const { return m_handlingPassive; } | 282 PassiveMode handlingPassive() const { return m_handlingPassive; } |
| 283 | 283 |
| 284 virtual bool shouldLogPassiveDevtoolsWarning() const { return true; } |
| 285 |
| 284 private: | 286 private: |
| 285 enum EventPathMode { EmptyAfterDispatch, NonEmptyAfterDispatch }; | 287 enum EventPathMode { EmptyAfterDispatch, NonEmptyAfterDispatch }; |
| 286 | 288 |
| 287 HeapVector<Member<EventTarget>> pathInternal(ScriptState*, | 289 HeapVector<Member<EventTarget>> pathInternal(ScriptState*, |
| 288 EventPathMode) const; | 290 EventPathMode) const; |
| 289 | 291 |
| 290 AtomicString m_type; | 292 AtomicString m_type; |
| 291 unsigned m_canBubble : 1; | 293 unsigned m_canBubble : 1; |
| 292 unsigned m_cancelable : 1; | 294 unsigned m_cancelable : 1; |
| 293 unsigned m_composed : 1; | 295 unsigned m_composed : 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 319 double m_platformTimeStamp; | 321 double m_platformTimeStamp; |
| 320 }; | 322 }; |
| 321 | 323 |
| 322 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 324 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
| 323 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \ | 325 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \ |
| 324 event.is##typeName()) | 326 event.is##typeName()) |
| 325 | 327 |
| 326 } // namespace blink | 328 } // namespace blink |
| 327 | 329 |
| 328 #endif // Event_h | 330 #endif // Event_h |
| OLD | NEW |