| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 protected: | 191 protected: |
| 192 Event(); | 192 Event(); |
| 193 Event(const AtomicString& type, bool canBubble, bool cancelable); | 193 Event(const AtomicString& type, bool canBubble, bool cancelable); |
| 194 Event(const AtomicString& type, const EventInit&); | 194 Event(const AtomicString& type, const EventInit&); |
| 195 Event(const AtomicString& type, const EventInitDictionary&); | 195 Event(const AtomicString& type, const EventInitDictionary&); |
| 196 | 196 |
| 197 virtual void receivedTarget(); | 197 virtual void receivedTarget(); |
| 198 bool dispatched() const { return m_target; } | 198 bool dispatched() const { return m_target; } |
| 199 | 199 |
| 200 void setCanBubble(bool bubble) { m_canBubble = bubble; } |
| 201 |
| 200 private: | 202 private: |
| 201 AtomicString m_type; | 203 AtomicString m_type; |
| 202 bool m_canBubble; | 204 bool m_canBubble; |
| 203 bool m_cancelable; | 205 bool m_cancelable; |
| 204 | 206 |
| 205 bool m_propagationStopped; | 207 bool m_propagationStopped; |
| 206 bool m_immediatePropagationStopped; | 208 bool m_immediatePropagationStopped; |
| 207 bool m_defaultPrevented; | 209 bool m_defaultPrevented; |
| 208 bool m_defaultHandled; | 210 bool m_defaultHandled; |
| 209 bool m_cancelBubble; | 211 bool m_cancelBubble; |
| 210 | 212 |
| 211 unsigned short m_eventPhase; | 213 unsigned short m_eventPhase; |
| 212 RefPtrWillBeMember<EventTarget> m_currentTarget; | 214 RefPtrWillBeMember<EventTarget> m_currentTarget; |
| 213 RefPtrWillBeMember<EventTarget> m_target; | 215 RefPtrWillBeMember<EventTarget> m_target; |
| 214 DOMTimeStamp m_createTime; | 216 DOMTimeStamp m_createTime; |
| 215 RefPtrWillBeMember<Event> m_underlyingEvent; | 217 RefPtrWillBeMember<Event> m_underlyingEvent; |
| 216 OwnPtrWillBeMember<EventPath> m_eventPath; | 218 OwnPtrWillBeMember<EventPath> m_eventPath; |
| 217 double m_uiCreateTime; // For input events, the time the event was recorded
by the UI. | 219 double m_uiCreateTime; // For input events, the time the event was recorded
by the UI. |
| 218 }; | 220 }; |
| 219 | 221 |
| 220 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 222 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
| 221 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) | 223 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) |
| 222 | 224 |
| 223 } // namespace blink | 225 } // namespace blink |
| 224 | 226 |
| 225 #endif // Event_h | 227 #endif // Event_h |
| OLD | NEW |