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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 static PassRefPtr<Event> create(const AtomicString& type, const EventInit& i
nitializer) | 87 static PassRefPtr<Event> create(const AtomicString& type, const EventInit& i
nitializer) |
88 { | 88 { |
89 return adoptRef(new Event(type, initializer)); | 89 return adoptRef(new Event(type, initializer)); |
90 } | 90 } |
91 | 91 |
92 virtual ~Event(); | 92 virtual ~Event(); |
93 | 93 |
94 void initEvent(const AtomicString& type, bool canBubble, bool cancelable); | 94 void initEvent(const AtomicString& type, bool canBubble, bool cancelable); |
95 | 95 |
96 const AtomicString& type() const { return m_type; } | 96 const AtomicString& type() const { return m_type; } |
| 97 void setType(const AtomicString& type) { m_type = type; } |
97 | 98 |
98 EventTarget* target() const { return m_target.get(); } | 99 EventTarget* target() const { return m_target.get(); } |
99 void setTarget(PassRefPtr<EventTarget>); | 100 void setTarget(PassRefPtr<EventTarget>); |
100 | 101 |
101 EventTarget* currentTarget() const { return m_currentTarget; } | 102 EventTarget* currentTarget() const { return m_currentTarget; } |
102 void setCurrentTarget(EventTarget* currentTarget) { m_currentTarget = curren
tTarget; } | 103 void setCurrentTarget(EventTarget* currentTarget) { m_currentTarget = curren
tTarget; } |
103 | 104 |
104 unsigned short eventPhase() const { return m_eventPhase; } | 105 unsigned short eventPhase() const { return m_eventPhase; } |
105 void setEventPhase(unsigned short eventPhase) { m_eventPhase = eventPhase; } | 106 void setEventPhase(unsigned short eventPhase) { m_eventPhase = eventPhase; } |
106 | 107 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 EventTarget* m_currentTarget; | 194 EventTarget* m_currentTarget; |
194 RefPtr<EventTarget> m_target; | 195 RefPtr<EventTarget> m_target; |
195 DOMTimeStamp m_createTime; | 196 DOMTimeStamp m_createTime; |
196 RefPtr<Event> m_underlyingEvent; | 197 RefPtr<Event> m_underlyingEvent; |
197 EventPath m_eventPath; | 198 EventPath m_eventPath; |
198 }; | 199 }; |
199 | 200 |
200 } // namespace WebCore | 201 } // namespace WebCore |
201 | 202 |
202 #endif // Event_h | 203 #endif // Event_h |
OLD | NEW |