| 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 bool immediatePropagationStopped() const { return m_immediatePropagationStop
ped; } | 172 bool immediatePropagationStopped() const { return m_immediatePropagationStop
ped; } |
| 173 bool wasInitialized() { return m_wasInitialized; } | 173 bool wasInitialized() { return m_wasInitialized; } |
| 174 | 174 |
| 175 bool defaultPrevented() const { return m_defaultPrevented; } | 175 bool defaultPrevented() const { return m_defaultPrevented; } |
| 176 virtual void preventDefault(); | 176 virtual void preventDefault(); |
| 177 void setDefaultPrevented(bool defaultPrevented) { m_defaultPrevented = defau
ltPrevented; } | 177 void setDefaultPrevented(bool defaultPrevented) { m_defaultPrevented = defau
ltPrevented; } |
| 178 | 178 |
| 179 bool defaultHandled() const { return m_defaultHandled; } | 179 bool defaultHandled() const { return m_defaultHandled; } |
| 180 void setDefaultHandled() { m_defaultHandled = true; } | 180 void setDefaultHandled() { m_defaultHandled = true; } |
| 181 | 181 |
| 182 bool cancelBubble() const { return m_cancelBubble; } | 182 bool cancelBubble(ExecutionContext* = nullptr) const { return m_cancelBubble
; } |
| 183 void setCancelBubble(bool cancel) { m_cancelBubble = cancel; } | 183 void setCancelBubble(ExecutionContext*, bool); |
| 184 | 184 |
| 185 Event* underlyingEvent() const { return m_underlyingEvent.get(); } | 185 Event* underlyingEvent() const { return m_underlyingEvent.get(); } |
| 186 void setUnderlyingEvent(Event*); | 186 void setUnderlyingEvent(Event*); |
| 187 | 187 |
| 188 bool hasEventPath() { return m_eventPath; } | 188 bool hasEventPath() { return m_eventPath; } |
| 189 EventPath& eventPath() { ASSERT(m_eventPath); return *m_eventPath; } | 189 EventPath& eventPath() { ASSERT(m_eventPath); return *m_eventPath; } |
| 190 void initEventPath(Node&); | 190 void initEventPath(Node&); |
| 191 | 191 |
| 192 HeapVector<Member<EventTarget>> path(ScriptState*) const; | 192 HeapVector<Member<EventTarget>> path(ScriptState*) const; |
| 193 HeapVector<Member<EventTarget>> deepPath(ScriptState*) const; | 193 HeapVector<Member<EventTarget>> deepPath(ScriptState*) const; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // WebInputEvent instance. | 255 // WebInputEvent instance. |
| 256 double m_platformTimeStamp; | 256 double m_platformTimeStamp; |
| 257 }; | 257 }; |
| 258 | 258 |
| 259 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 259 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
| 260 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) | 260 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), event.is##t
ypeName()) |
| 261 | 261 |
| 262 } // namespace blink | 262 } // namespace blink |
| 263 | 263 |
| 264 #endif // Event_h | 264 #endif // Event_h |
| OLD | NEW |