| 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 | 26 |
| 27 namespace blink { | 27 namespace blink { |
| 28 | 28 |
| 29 UIEvent::UIEvent() | 29 UIEvent::UIEvent() |
| 30 : m_detail(0) | 30 : m_detail(0) |
| 31 , m_sourceDevice(nullptr) | 31 , m_sourceDevice(nullptr) |
| 32 { | 32 { |
| 33 } | 33 } |
| 34 | 34 |
| 35 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
leArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg) | 35 // TODO(lanwei): Will add sourceDevice to all the subclass of UIEvent later, see
https://crbug.com/476530. |
| 36 UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
leArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg, InputDevice*
sourceDeviceArg) |
| 36 : Event(eventType, canBubbleArg, cancelableArg) | 37 : Event(eventType, canBubbleArg, cancelableArg) |
| 37 , m_view(viewArg) | 38 , m_view(viewArg) |
| 38 , m_detail(detailArg) | 39 , m_detail(detailArg) |
| 39 , m_sourceDevice(nullptr) | 40 , m_sourceDevice(sourceDeviceArg) |
| 40 { | 41 { |
| 41 } | 42 } |
| 42 | 43 |
| 43 UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer) | 44 UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer) |
| 44 : Event(eventType, initializer) | 45 : Event(eventType, initializer) |
| 45 , m_view(initializer.view()) | 46 , m_view(initializer.view()) |
| 46 , m_detail(initializer.detail()) | 47 , m_detail(initializer.detail()) |
| 47 , m_sourceDevice(initializer.sourceDevice()) | 48 , m_sourceDevice(initializer.sourceDevice()) |
| 48 { | 49 { |
| 49 } | 50 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 } | 111 } |
| 111 | 112 |
| 112 DEFINE_TRACE(UIEvent) | 113 DEFINE_TRACE(UIEvent) |
| 113 { | 114 { |
| 114 visitor->trace(m_view); | 115 visitor->trace(m_view); |
| 115 visitor->trace(m_sourceDevice); | 116 visitor->trace(m_sourceDevice); |
| 116 Event::trace(visitor); | 117 Event::trace(visitor); |
| 117 } | 118 } |
| 118 | 119 |
| 119 } // namespace blink | 120 } // namespace blink |
| OLD | NEW |