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

Side by Side Diff: third_party/WebKit/Source/core/events/WheelEvent.cpp

Issue 2542693002: Use WTF::TimeTicks to represent timestamp in Platform/Core event types (Closed)
Patch Set: rebase Created 4 years 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, 2005, 2006, 2008, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2008, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2013 Samsung Electronics. All rights 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 WheelEvent::WheelEvent(const FloatPoint& wheelTicks, 98 WheelEvent::WheelEvent(const FloatPoint& wheelTicks,
99 const FloatPoint& rawDelta, 99 const FloatPoint& rawDelta,
100 unsigned deltaMode, 100 unsigned deltaMode,
101 AbstractView* view, 101 AbstractView* view,
102 const IntPoint& screenLocation, 102 const IntPoint& screenLocation,
103 const IntPoint& windowLocation, 103 const IntPoint& windowLocation,
104 PlatformEvent::Modifiers modifiers, 104 PlatformEvent::Modifiers modifiers,
105 unsigned short buttons, 105 unsigned short buttons,
106 double platformTimeStamp, 106 TimeTicks platformTimeStamp,
107 int resendingPluginId, 107 int resendingPluginId,
108 bool hasPreciseScrollingDeltas, 108 bool hasPreciseScrollingDeltas,
109 RailsMode railsMode, 109 RailsMode railsMode,
110 bool cancelable) 110 bool cancelable)
111 : MouseEvent(EventTypeNames::wheel, 111 : MouseEvent(EventTypeNames::wheel,
112 true, 112 true,
113 cancelable, 113 cancelable,
114 view, 114 view,
115 0, 115 0,
116 screenLocation.x(), 116 screenLocation.x(),
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 #if OS(MACOSX) 150 #if OS(MACOSX)
151 WheelEvent::WheelEvent(const FloatPoint& wheelTicks, 151 WheelEvent::WheelEvent(const FloatPoint& wheelTicks,
152 const FloatPoint& rawDelta, 152 const FloatPoint& rawDelta,
153 unsigned deltaMode, 153 unsigned deltaMode,
154 AbstractView* view, 154 AbstractView* view,
155 const IntPoint& screenLocation, 155 const IntPoint& screenLocation,
156 const IntPoint& windowLocation, 156 const IntPoint& windowLocation,
157 PlatformEvent::Modifiers modifiers, 157 PlatformEvent::Modifiers modifiers,
158 unsigned short buttons, 158 unsigned short buttons,
159 double platformTimeStamp, 159 TimeTicks platformTimeStamp,
160 int resendingPluginId, 160 int resendingPluginId,
161 bool hasPreciseScrollingDeltas, 161 bool hasPreciseScrollingDeltas,
162 RailsMode railsMode, 162 RailsMode railsMode,
163 bool cancelable, 163 bool cancelable,
164 WheelEventPhase phase, 164 WheelEventPhase phase,
165 WheelEventPhase momentumPhase) 165 WheelEventPhase momentumPhase)
166 : MouseEvent(EventTypeNames::wheel, 166 : MouseEvent(EventTypeNames::wheel,
167 true, 167 true,
168 cancelable, 168 cancelable,
169 view, 169 view,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 EventDispatchMediator* WheelEvent::createMediator() { 213 EventDispatchMediator* WheelEvent::createMediator() {
214 return EventDispatchMediator::create(this); 214 return EventDispatchMediator::create(this);
215 } 215 }
216 216
217 DEFINE_TRACE(WheelEvent) { 217 DEFINE_TRACE(WheelEvent) {
218 MouseEvent::trace(visitor); 218 MouseEvent::trace(visitor);
219 } 219 }
220 220
221 } // namespace blink 221 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/WheelEvent.h ('k') | third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698