| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // Events that must not leak across isolated world, similar to how | 189 // Events that must not leak across isolated world, similar to how |
| 190 // ErrorEvent behaves, can override this method. | 190 // ErrorEvent behaves, can override this method. |
| 191 virtual bool canBeDispatchedInWorld(const DOMWrapperWorld&) const { return t
rue; } | 191 virtual bool canBeDispatchedInWorld(const DOMWrapperWorld&) const { return t
rue; } |
| 192 | 192 |
| 193 virtual PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator(); |
| 194 |
| 193 DECLARE_VIRTUAL_TRACE(); | 195 DECLARE_VIRTUAL_TRACE(); |
| 194 | 196 |
| 195 protected: | 197 protected: |
| 196 Event(); | 198 Event(); |
| 197 Event(const AtomicString& type, bool canBubble, bool cancelable); | 199 Event(const AtomicString& type, bool canBubble, bool cancelable); |
| 198 Event(const AtomicString& type, const EventInit&); | 200 Event(const AtomicString& type, const EventInit&); |
| 199 | 201 |
| 200 virtual void receivedTarget(); | 202 virtual void receivedTarget(); |
| 201 bool dispatched() const { return m_target; } | 203 bool dispatched() const { return m_target; } |
| 202 | 204 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 221 OwnPtrWillBeMember<EventPath> m_eventPath; | 223 OwnPtrWillBeMember<EventPath> m_eventPath; |
| 222 double m_uiCreateTime; // For input events, the time the event was recorded
by the UI. | 224 double m_uiCreateTime; // For input events, the time the event was recorded
by the UI. |
| 223 }; | 225 }; |
| 224 | 226 |
| 225 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 227 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
| 226 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) | 228 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) |
| 227 | 229 |
| 228 } // namespace blink | 230 } // namespace blink |
| 229 | 231 |
| 230 #endif // Event_h | 232 #endif // Event_h |
| OLD | NEW |