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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 bool cancelBubble() const { return m_cancelBubble; } | 173 bool cancelBubble() const { return m_cancelBubble; } |
174 void setCancelBubble(bool cancel) { m_cancelBubble = cancel; } | 174 void setCancelBubble(bool cancel) { m_cancelBubble = cancel; } |
175 | 175 |
176 Event* underlyingEvent() const { return m_underlyingEvent.get(); } | 176 Event* underlyingEvent() const { return m_underlyingEvent.get(); } |
177 void setUnderlyingEvent(PassRefPtrWillBeRawPtr<Event>); | 177 void setUnderlyingEvent(PassRefPtrWillBeRawPtr<Event>); |
178 | 178 |
179 EventPath& eventPath() { ASSERT(m_eventPath); return *m_eventPath; } | 179 EventPath& eventPath() { ASSERT(m_eventPath); return *m_eventPath; } |
180 void initEventPath(Node&); | 180 void initEventPath(Node&); |
181 | 181 |
182 WillBeHeapVector<RefPtrWillBeRawPtr<EventTarget>> path() const; | 182 WillBeHeapVector<RefPtrWillBeMember<EventTarget>> path() const; |
183 | 183 |
184 bool isBeingDispatched() const { return eventPhase(); } | 184 bool isBeingDispatched() const { return eventPhase(); } |
185 | 185 |
186 double uiCreateTime() const { return m_uiCreateTime; } | 186 double uiCreateTime() const { return m_uiCreateTime; } |
187 void setUICreateTime(double uiCreateTime) { m_uiCreateTime = uiCreateTime; } | 187 void setUICreateTime(double uiCreateTime) { m_uiCreateTime = uiCreateTime; } |
188 | 188 |
189 virtual void trace(Visitor*); | 189 virtual void trace(Visitor*); |
190 | 190 |
191 protected: | 191 protected: |
192 Event(); | 192 Event(); |
(...skipping 25 matching lines...) Expand all Loading... |
218 OwnPtrWillBeMember<EventPath> m_eventPath; | 218 OwnPtrWillBeMember<EventPath> m_eventPath; |
219 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. |
220 }; | 220 }; |
221 | 221 |
222 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 222 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
223 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()) |
224 | 224 |
225 } // namespace blink | 225 } // namespace blink |
226 | 226 |
227 #endif // Event_h | 227 #endif // Event_h |
OLD | NEW |