Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(524)

Side by Side Diff: third_party/WebKit/Source/core/events/Event.h

Issue 2834183002: Add time stamp to the constructor of the events (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 = TimeTicks::Now());
dtapuska 2017/04/21 20:18:10 We should follow the Google C++ coding guide here
Navid Zolghadr 2017/04/24 15:19:41 Done.
262 264
263 virtual void ReceivedTarget(); 265 virtual void ReceivedTarget();
264 266
265 void SetCanBubble(bool bubble) { can_bubble_ = bubble; } 267 void SetCanBubble(bool bubble) { can_bubble_ = bubble; }
266 268
267 PassiveMode HandlingPassive() const { return handling_passive_; } 269 PassiveMode HandlingPassive() const { return handling_passive_; }
268 270
269 private: 271 private:
270 enum EventPathMode { kEmptyAfterDispatch, kNonEmptyAfterDispatch }; 272 enum EventPathMode { kEmptyAfterDispatch, kNonEmptyAfterDispatch };
271 273
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 TimeTicks platform_time_stamp_; 305 TimeTicks platform_time_stamp_;
304 }; 306 };
305 307
306 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ 308 #define DEFINE_EVENT_TYPE_CASTS(typeName) \
307 DEFINE_TYPE_CASTS(typeName, Event, event, event->Is##typeName(), \ 309 DEFINE_TYPE_CASTS(typeName, Event, event, event->Is##typeName(), \
308 event.Is##typeName()) 310 event.Is##typeName())
309 311
310 } // namespace blink 312 } // namespace blink
311 313
312 #endif // Event_h 314 #endif // Event_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698