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

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

Issue 2834183002: Add time stamp to the constructor of the events (Closed)
Patch Set: Fix typos 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, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 UIEventWithKeyState(const AtomicString& type, 69 UIEventWithKeyState(const AtomicString& type,
70 bool can_bubble, 70 bool can_bubble,
71 bool cancelable, 71 bool cancelable,
72 AbstractView*, 72 AbstractView*,
73 int detail, 73 int detail,
74 WebInputEvent::Modifiers, 74 WebInputEvent::Modifiers,
75 TimeTicks platform_time_stamp, 75 TimeTicks platform_time_stamp,
76 InputDeviceCapabilities* source_capabilities = nullptr); 76 InputDeviceCapabilities* source_capabilities = nullptr);
77 UIEventWithKeyState(const AtomicString& type, 77 UIEventWithKeyState(const AtomicString& type,
78 const EventModifierInit& initializer); 78 const EventModifierInit& initializer,
79 TimeTicks platform_time_stamp);
80 UIEventWithKeyState(const AtomicString& type,
81 const EventModifierInit& initializer)
82 : UIEventWithKeyState(type, initializer, TimeTicks::Now()) {}
79 void InitModifiers(bool ctrl_key, 83 void InitModifiers(bool ctrl_key,
80 bool alt_key, 84 bool alt_key,
81 bool shift_key, 85 bool shift_key,
82 bool meta_key); 86 bool meta_key);
83 87
84 unsigned modifiers_; 88 unsigned modifiers_;
85 89
86 private: 90 private:
87 static bool new_tab_modifier_set_from_isolated_world_; 91 static bool new_tab_modifier_set_from_isolated_world_;
88 }; 92 };
89 93
90 UIEventWithKeyState* FindEventWithKeyState(Event*); 94 UIEventWithKeyState* FindEventWithKeyState(Event*);
91 95
92 } // namespace blink 96 } // namespace blink
93 97
94 #endif // UIEventWithKeyState_h 98 #endif // UIEventWithKeyState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/UIEvent.cpp ('k') | third_party/WebKit/Source/core/events/UIEventWithKeyState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698