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, 2005, 2006, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved. |
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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #include "gen/sky/core/EventHeaders.h" | 26 #include "gen/sky/core/EventHeaders.h" |
27 #include "gen/sky/core/EventInterfaces.h" | 27 #include "gen/sky/core/EventInterfaces.h" |
28 #include "sky/engine/core/dom/StaticNodeList.h" | 28 #include "sky/engine/core/dom/StaticNodeList.h" |
29 #include "sky/engine/core/events/EventTarget.h" | 29 #include "sky/engine/core/events/EventTarget.h" |
30 #include "sky/engine/core/frame/UseCounter.h" | 30 #include "sky/engine/core/frame/UseCounter.h" |
31 #include "sky/engine/wtf/CurrentTime.h" | 31 #include "sky/engine/wtf/CurrentTime.h" |
32 | 32 |
33 namespace blink { | 33 namespace blink { |
34 | 34 |
35 EventInit::EventInit() | |
36 : bubbles(false) | |
37 , cancelable(false) | |
38 { | |
39 } | |
40 | |
41 | |
42 Event::Event() | 35 Event::Event() |
43 : m_canBubble(false) | 36 : m_canBubble(false) |
44 , m_cancelable(false) | 37 , m_cancelable(false) |
45 , m_propagationStopped(false) | 38 , m_propagationStopped(false) |
46 , m_immediatePropagationStopped(false) | 39 , m_immediatePropagationStopped(false) |
47 , m_defaultPrevented(false) | 40 , m_defaultPrevented(false) |
48 , m_defaultHandled(false) | 41 , m_defaultHandled(false) |
49 , m_cancelBubble(false) | 42 , m_cancelBubble(false) |
50 , m_eventPhase(0) | 43 , m_eventPhase(0) |
51 , m_currentTarget(nullptr) | 44 , m_currentTarget(nullptr) |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 } | 226 } |
234 return StaticNodeList::createEmpty(); | 227 return StaticNodeList::createEmpty(); |
235 } | 228 } |
236 | 229 |
237 EventTarget* Event::currentTarget() const | 230 EventTarget* Event::currentTarget() const |
238 { | 231 { |
239 return m_currentTarget.get(); | 232 return m_currentTarget.get(); |
240 } | 233 } |
241 | 234 |
242 } // namespace blink | 235 } // namespace blink |
OLD | NEW |