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

Side by Side Diff: third_party/WebKit/Source/core/events/MouseRelatedEvent.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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 MouseRelatedEvent::MouseRelatedEvent( 53 MouseRelatedEvent::MouseRelatedEvent(
54 const AtomicString& eventType, 54 const AtomicString& eventType,
55 bool canBubble, 55 bool canBubble,
56 bool cancelable, 56 bool cancelable,
57 AbstractView* abstractView, 57 AbstractView* abstractView,
58 int detail, 58 int detail,
59 const IntPoint& screenLocation, 59 const IntPoint& screenLocation,
60 const IntPoint& rootFrameLocation, 60 const IntPoint& rootFrameLocation,
61 const IntPoint& movementDelta, 61 const IntPoint& movementDelta,
62 PlatformEvent::Modifiers modifiers, 62 PlatformEvent::Modifiers modifiers,
63 double platformTimeStamp, 63 TimeTicks platformTimeStamp,
64 PositionType positionType, 64 PositionType positionType,
65 InputDeviceCapabilities* sourceCapabilities) 65 InputDeviceCapabilities* sourceCapabilities)
66 : UIEventWithKeyState(eventType, 66 : UIEventWithKeyState(eventType,
67 canBubble, 67 canBubble,
68 cancelable, 68 cancelable,
69 abstractView, 69 abstractView,
70 detail, 70 detail,
71 modifiers, 71 modifiers,
72 platformTimeStamp, 72 platformTimeStamp,
73 sourceCapabilities), 73 sourceCapabilities),
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 if (!m_hasCachedRelativePosition) 248 if (!m_hasCachedRelativePosition)
249 computeRelativePosition(); 249 computeRelativePosition();
250 return std::round(m_offsetLocation.y()); 250 return std::round(m_offsetLocation.y());
251 } 251 }
252 252
253 DEFINE_TRACE(MouseRelatedEvent) { 253 DEFINE_TRACE(MouseRelatedEvent) {
254 UIEventWithKeyState::trace(visitor); 254 UIEventWithKeyState::trace(visitor);
255 } 255 }
256 256
257 } // namespace blink 257 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/MouseRelatedEvent.h ('k') | third_party/WebKit/Source/core/events/TextEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698