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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 virtual bool isDragEvent() const; | 163 virtual bool isDragEvent() const; |
164 | 164 |
165 // These events lack a DOM interface. | 165 // These events lack a DOM interface. |
166 virtual bool isClipboardEvent() const; | 166 virtual bool isClipboardEvent() const; |
167 virtual bool isBeforeTextInsertedEvent() const; | 167 virtual bool isBeforeTextInsertedEvent() const; |
168 | 168 |
169 virtual bool isBeforeUnloadEvent() const; | 169 virtual bool isBeforeUnloadEvent() const; |
170 | 170 |
171 bool propagationStopped() const { return m_propagationStopped || m_immediate
PropagationStopped; } | 171 bool propagationStopped() const { return m_propagationStopped || m_immediate
PropagationStopped; } |
172 bool immediatePropagationStopped() const { return m_immediatePropagationStop
ped; } | 172 bool immediatePropagationStopped() const { return m_immediatePropagationStop
ped; } |
| 173 bool wasInitialized() { return m_wasInitialized; } |
173 | 174 |
174 bool defaultPrevented() const { return m_defaultPrevented; } | 175 bool defaultPrevented() const { return m_defaultPrevented; } |
175 virtual void preventDefault(); | 176 virtual void preventDefault(); |
176 void setDefaultPrevented(bool defaultPrevented) { m_defaultPrevented = defau
ltPrevented; } | 177 void setDefaultPrevented(bool defaultPrevented) { m_defaultPrevented = defau
ltPrevented; } |
177 | 178 |
178 bool defaultHandled() const { return m_defaultHandled; } | 179 bool defaultHandled() const { return m_defaultHandled; } |
179 void setDefaultHandled() { m_defaultHandled = true; } | 180 void setDefaultHandled() { m_defaultHandled = true; } |
180 | 181 |
181 bool cancelBubble() const { return m_cancelBubble; } | 182 bool cancelBubble() const { return m_cancelBubble; } |
182 void setCancelBubble(bool cancel) { m_cancelBubble = cancel; } | 183 void setCancelBubble(bool cancel) { m_cancelBubble = cancel; } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 unsigned m_canBubble:1; | 232 unsigned m_canBubble:1; |
232 unsigned m_cancelable:1; | 233 unsigned m_cancelable:1; |
233 unsigned m_scoped:1; | 234 unsigned m_scoped:1; |
234 unsigned m_relatedTargetScoped:1; | 235 unsigned m_relatedTargetScoped:1; |
235 | 236 |
236 unsigned m_propagationStopped:1; | 237 unsigned m_propagationStopped:1; |
237 unsigned m_immediatePropagationStopped:1; | 238 unsigned m_immediatePropagationStopped:1; |
238 unsigned m_defaultPrevented:1; | 239 unsigned m_defaultPrevented:1; |
239 unsigned m_defaultHandled:1; | 240 unsigned m_defaultHandled:1; |
240 unsigned m_cancelBubble:1; | 241 unsigned m_cancelBubble:1; |
| 242 unsigned m_wasInitialized:1; |
241 unsigned m_isTrusted : 1; | 243 unsigned m_isTrusted : 1; |
242 unsigned m_handlingPassive : 1; | 244 unsigned m_handlingPassive : 1; |
243 | 245 |
244 unsigned short m_eventPhase; | 246 unsigned short m_eventPhase; |
245 Member<EventTarget> m_currentTarget; | 247 Member<EventTarget> m_currentTarget; |
246 Member<EventTarget> m_target; | 248 Member<EventTarget> m_target; |
247 DOMTimeStamp m_createTime; | 249 DOMTimeStamp m_createTime; |
248 Member<Event> m_underlyingEvent; | 250 Member<Event> m_underlyingEvent; |
249 Member<EventPath> m_eventPath; | 251 Member<EventPath> m_eventPath; |
250 // The monotonic platform time in seconds, for input events it is the | 252 // The monotonic platform time in seconds, for input events it is the |
251 // event timestamp provided by the host OS and reported in the original | 253 // event timestamp provided by the host OS and reported in the original |
252 // WebInputEvent instance. | 254 // WebInputEvent instance. |
253 double m_platformTimeStamp; | 255 double m_platformTimeStamp; |
254 }; | 256 }; |
255 | 257 |
256 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 258 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
257 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) | 259 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) |
258 | 260 |
259 } // namespace blink | 261 } // namespace blink |
260 | 262 |
261 #endif // Event_h | 263 #endif // Event_h |
OLD | NEW |