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, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights |
6 * reserved. | 6 * reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 ComposedMode, | 251 ComposedMode, |
252 TimeTicks platform_time_stamp); | 252 TimeTicks platform_time_stamp); |
253 Event(const AtomicString& type, | 253 Event(const AtomicString& type, |
254 bool can_bubble, | 254 bool can_bubble, |
255 bool cancelable, | 255 bool cancelable, |
256 TimeTicks platform_time_stamp); | 256 TimeTicks platform_time_stamp); |
257 Event(const AtomicString& type, | 257 Event(const AtomicString& type, |
258 bool can_bubble, | 258 bool can_bubble, |
259 bool cancelable, | 259 bool cancelable, |
260 ComposedMode = ComposedMode::kScoped); | 260 ComposedMode = ComposedMode::kScoped); |
261 Event(const AtomicString& type, const EventInit&); | 261 Event(const AtomicString& type, |
| 262 const EventInit&, |
| 263 TimeTicks platform_time_stamp); |
| 264 Event(const AtomicString& type, const EventInit& init) |
| 265 : Event(type, init, TimeTicks::Now()) {} |
262 | 266 |
263 virtual void ReceivedTarget(); | 267 virtual void ReceivedTarget(); |
264 | 268 |
265 void SetCanBubble(bool bubble) { can_bubble_ = bubble; } | 269 void SetCanBubble(bool bubble) { can_bubble_ = bubble; } |
266 | 270 |
267 PassiveMode HandlingPassive() const { return handling_passive_; } | 271 PassiveMode HandlingPassive() const { return handling_passive_; } |
268 | 272 |
269 private: | 273 private: |
270 enum EventPathMode { kEmptyAfterDispatch, kNonEmptyAfterDispatch }; | 274 enum EventPathMode { kEmptyAfterDispatch, kNonEmptyAfterDispatch }; |
271 | 275 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 TimeTicks platform_time_stamp_; | 307 TimeTicks platform_time_stamp_; |
304 }; | 308 }; |
305 | 309 |
306 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ | 310 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ |
307 DEFINE_TYPE_CASTS(typeName, Event, event, event->Is##typeName(), \ | 311 DEFINE_TYPE_CASTS(typeName, Event, event, event->Is##typeName(), \ |
308 event.Is##typeName()) | 312 event.Is##typeName()) |
309 | 313 |
310 } // namespace blink | 314 } // namespace blink |
311 | 315 |
312 #endif // Event_h | 316 #endif // Event_h |
OLD | NEW |