| 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 20 matching lines...) Expand all Loading... |
| 31 , detail(0) | 31 , detail(0) |
| 32 { | 32 { |
| 33 } | 33 } |
| 34 | 34 |
| 35 UIEvent::UIEvent() | 35 UIEvent::UIEvent() |
| 36 : m_detail(0) | 36 : m_detail(0) |
| 37 { | 37 { |
| 38 ScriptWrappable::init(this); | 38 ScriptWrappable::init(this); |
| 39 } | 39 } |
| 40 | 40 |
| 41 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
leArg, PassRefPtr<AbstractView> viewArg, int detailArg) | 41 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
leArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg) |
| 42 : Event(eventType, canBubbleArg, cancelableArg) | 42 : Event(eventType, canBubbleArg, cancelableArg) |
| 43 , m_view(viewArg) | 43 , m_view(viewArg) |
| 44 , m_detail(detailArg) | 44 , m_detail(detailArg) |
| 45 { | 45 { |
| 46 ScriptWrappable::init(this); | 46 ScriptWrappable::init(this); |
| 47 } | 47 } |
| 48 | 48 |
| 49 UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer) | 49 UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer) |
| 50 : Event(eventType, initializer) | 50 : Event(eventType, initializer) |
| 51 , m_view(initializer.view) | 51 , m_view(initializer.view) |
| 52 , m_detail(initializer.detail) | 52 , m_detail(initializer.detail) |
| 53 { | 53 { |
| 54 ScriptWrappable::init(this); | 54 ScriptWrappable::init(this); |
| 55 } | 55 } |
| 56 | 56 |
| 57 UIEvent::~UIEvent() | 57 UIEvent::~UIEvent() |
| 58 { | 58 { |
| 59 } | 59 } |
| 60 | 60 |
| 61 void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c
ancelableArg, PassRefPtr<AbstractView> viewArg, int detailArg) | 61 void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool c
ancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg) |
| 62 { | 62 { |
| 63 if (dispatched()) | 63 if (dispatched()) |
| 64 return; | 64 return; |
| 65 | 65 |
| 66 initEvent(typeArg, canBubbleArg, cancelableArg); | 66 initEvent(typeArg, canBubbleArg, cancelableArg); |
| 67 | 67 |
| 68 m_view = viewArg; | 68 m_view = viewArg; |
| 69 m_detail = detailArg; | 69 m_detail = detailArg; |
| 70 } | 70 } |
| 71 | 71 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 return 0; | 109 return 0; |
| 110 } | 110 } |
| 111 | 111 |
| 112 int UIEvent::which() const | 112 int UIEvent::which() const |
| 113 { | 113 { |
| 114 return 0; | 114 return 0; |
| 115 } | 115 } |
| 116 | 116 |
| 117 void UIEvent::trace(Visitor* visitor) | 117 void UIEvent::trace(Visitor* visitor) |
| 118 { | 118 { |
| 119 visitor->trace(m_view); |
| 119 Event::trace(visitor); | 120 Event::trace(visitor); |
| 120 } | 121 } |
| 121 | 122 |
| 122 } // namespace WebCore | 123 } // namespace WebCore |
| OLD | NEW |