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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 { | 76 { |
77 } | 77 } |
78 | 78 |
79 void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c
ancelableArg, AbstractView* viewArg, int detailArg) | 79 void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c
ancelableArg, AbstractView* viewArg, int detailArg) |
80 { | 80 { |
81 initUIEventInternal(typeArg, canBubbleArg, cancelableArg, nullptr, viewArg,
detailArg, nullptr); | 81 initUIEventInternal(typeArg, canBubbleArg, cancelableArg, nullptr, viewArg,
detailArg, nullptr); |
82 } | 82 } |
83 | 83 |
84 void UIEvent::initUIEventInternal(const AtomicString& typeArg, bool canBubbleArg
, bool cancelableArg, EventTarget* relatedTarget, AbstractView* viewArg, int det
ailArg, InputDeviceCapabilities* sourceCapabilitiesArg) | 84 void UIEvent::initUIEventInternal(const AtomicString& typeArg, bool canBubbleArg
, bool cancelableArg, EventTarget* relatedTarget, AbstractView* viewArg, int det
ailArg, InputDeviceCapabilities* sourceCapabilitiesArg) |
85 { | 85 { |
86 if (dispatched()) | 86 if (isBeingDispatched()) |
87 return; | 87 return; |
88 | 88 |
89 initEvent(typeArg, canBubbleArg, cancelableArg, relatedTarget); | 89 initEvent(typeArg, canBubbleArg, cancelableArg, relatedTarget); |
90 | 90 |
91 m_view = viewArg; | 91 m_view = viewArg; |
92 m_detail = detailArg; | 92 m_detail = detailArg; |
93 m_sourceCapabilities = sourceCapabilitiesArg; | 93 m_sourceCapabilities = sourceCapabilitiesArg; |
94 } | 94 } |
95 | 95 |
96 bool UIEvent::isUIEvent() const | 96 bool UIEvent::isUIEvent() const |
(...skipping 12 matching lines...) Expand all Loading... |
109 } | 109 } |
110 | 110 |
111 DEFINE_TRACE(UIEvent) | 111 DEFINE_TRACE(UIEvent) |
112 { | 112 { |
113 visitor->trace(m_view); | 113 visitor->trace(m_view); |
114 visitor->trace(m_sourceCapabilities); | 114 visitor->trace(m_sourceCapabilities); |
115 Event::trace(visitor); | 115 Event::trace(visitor); |
116 } | 116 } |
117 | 117 |
118 } // namespace blink | 118 } // namespace blink |
OLD | NEW |