| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // TODO(lanwei): Will add sourceCapabilities to all the subclass of UIEvent late
r, see https://crbug.com/476530. | 34 // TODO(lanwei): Will add sourceCapabilities to all the subclass of UIEvent late
r, see https://crbug.com/476530. |
| 35 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
leArg, AbstractView* viewArg, int detailArg, InputDeviceCapabilities* sourceCapa
bilitiesArg) | 35 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
leArg, AbstractView* viewArg, int detailArg, InputDeviceCapabilities* sourceCapa
bilitiesArg) |
| 36 : Event(eventType, canBubbleArg, cancelableArg) | 36 : Event(eventType, canBubbleArg, cancelableArg) |
| 37 , m_view(viewArg) | 37 , m_view(viewArg) |
| 38 , m_detail(detailArg) | 38 , m_detail(detailArg) |
| 39 , m_sourceCapabilities(sourceCapabilitiesArg) | 39 , m_sourceCapabilities(sourceCapabilitiesArg) |
| 40 { | 40 { |
| 41 } | 41 } |
| 42 | 42 |
| 43 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
leArg, EventTarget* relatedTarget, AbstractView* viewArg, int detailArg, InputDe
viceCapabilities* sourceCapabilitiesArg) | |
| 44 : Event(eventType, canBubbleArg, cancelableArg, relatedTarget) | |
| 45 , m_view(viewArg) | |
| 46 , m_detail(detailArg) | |
| 47 , m_sourceCapabilities(sourceCapabilitiesArg) | |
| 48 { | |
| 49 } | |
| 50 | |
| 51 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
leArg, double platformTimeStamp, AbstractView* viewArg, int detailArg, InputDevi
ceCapabilities* sourceCapabilitiesArg) | 43 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
leArg, double platformTimeStamp, AbstractView* viewArg, int detailArg, InputDevi
ceCapabilities* sourceCapabilitiesArg) |
| 52 : Event(eventType, canBubbleArg, cancelableArg, platformTimeStamp) | 44 : Event(eventType, canBubbleArg, cancelableArg, platformTimeStamp) |
| 53 , m_view(viewArg) | 45 , m_view(viewArg) |
| 54 , m_detail(detailArg) | 46 , m_detail(detailArg) |
| 55 , m_sourceCapabilities(sourceCapabilitiesArg) | 47 , m_sourceCapabilities(sourceCapabilitiesArg) |
| 56 { | 48 { |
| 57 } | 49 } |
| 58 | 50 |
| 59 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
leArg, EventTarget* relatedTarget, double platformTimeStamp, AbstractView* viewA
rg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg) | |
| 60 : Event(eventType, canBubbleArg, cancelableArg, relatedTarget, platformTimeS
tamp) | |
| 61 , m_view(viewArg) | |
| 62 , m_detail(detailArg) | |
| 63 , m_sourceCapabilities(sourceCapabilitiesArg) | |
| 64 { | |
| 65 } | |
| 66 | |
| 67 UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer) | 51 UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer) |
| 68 : Event(eventType, initializer) | 52 : Event(eventType, initializer) |
| 69 , m_view(initializer.view()) | 53 , m_view(initializer.view()) |
| 70 , m_detail(initializer.detail()) | 54 , m_detail(initializer.detail()) |
| 71 , m_sourceCapabilities(initializer.sourceCapabilities()) | 55 , m_sourceCapabilities(initializer.sourceCapabilities()) |
| 72 { | 56 { |
| 73 } | 57 } |
| 74 | 58 |
| 75 UIEvent::~UIEvent() | 59 UIEvent::~UIEvent() |
| 76 { | 60 { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 93 } |
| 110 | 94 |
| 111 DEFINE_TRACE(UIEvent) | 95 DEFINE_TRACE(UIEvent) |
| 112 { | 96 { |
| 113 visitor->trace(m_view); | 97 visitor->trace(m_view); |
| 114 visitor->trace(m_sourceCapabilities); | 98 visitor->trace(m_sourceCapabilities); |
| 115 Event::trace(visitor); | 99 Event::trace(visitor); |
| 116 } | 100 } |
| 117 | 101 |
| 118 } // namespace blink | 102 } // namespace blink |
| OLD | NEW |