| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 default_prevented_(false), | 90 default_prevented_(false), |
| 91 default_handled_(false), | 91 default_handled_(false), |
| 92 was_initialized_(true), | 92 was_initialized_(true), |
| 93 is_trusted_(false), | 93 is_trusted_(false), |
| 94 prevent_default_called_on_uncancelable_event_(false), | 94 prevent_default_called_on_uncancelable_event_(false), |
| 95 handling_passive_(PassiveMode::kNotPassiveDefault), | 95 handling_passive_(PassiveMode::kNotPassiveDefault), |
| 96 event_phase_(0), | 96 event_phase_(0), |
| 97 current_target_(nullptr), | 97 current_target_(nullptr), |
| 98 platform_time_stamp_(platform_time_stamp) {} | 98 platform_time_stamp_(platform_time_stamp) {} |
| 99 | 99 |
| 100 Event::Event(const AtomicString& event_type, const EventInit& initializer) | 100 Event::Event(const AtomicString& event_type, |
| 101 const EventInit& initializer, |
| 102 TimeTicks platform_time_stamp) |
| 101 : Event(event_type, | 103 : Event(event_type, |
| 102 initializer.bubbles(), | 104 initializer.bubbles(), |
| 103 initializer.cancelable(), | 105 initializer.cancelable(), |
| 104 initializer.composed() ? ComposedMode::kComposed | 106 initializer.composed() ? ComposedMode::kComposed |
| 105 : ComposedMode::kScoped, | 107 : ComposedMode::kScoped, |
| 106 TimeTicks::Now()) {} | 108 platform_time_stamp) {} |
| 107 | 109 |
| 108 Event::~Event() {} | 110 Event::~Event() {} |
| 109 | 111 |
| 110 bool Event::IsScopedInV0() const { | 112 bool Event::IsScopedInV0() const { |
| 111 return isTrusted() && is_event_type_scoped_in_v0_; | 113 return isTrusted() && is_event_type_scoped_in_v0_; |
| 112 } | 114 } |
| 113 | 115 |
| 114 void Event::initEvent(const AtomicString& event_type_arg, | 116 void Event::initEvent(const AtomicString& event_type_arg, |
| 115 bool can_bubble_arg, | 117 bool can_bubble_arg, |
| 116 bool cancelable_arg) { | 118 bool cancelable_arg) { |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 } | 362 } |
| 361 | 363 |
| 362 DEFINE_TRACE(Event) { | 364 DEFINE_TRACE(Event) { |
| 363 visitor->Trace(current_target_); | 365 visitor->Trace(current_target_); |
| 364 visitor->Trace(target_); | 366 visitor->Trace(target_); |
| 365 visitor->Trace(underlying_event_); | 367 visitor->Trace(underlying_event_); |
| 366 visitor->Trace(event_path_); | 368 visitor->Trace(event_path_); |
| 367 } | 369 } |
| 368 | 370 |
| 369 } // namespace blink | 371 } // namespace blink |
| OLD | NEW |