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

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

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, 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc.
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // https://crbug.com/476530. 101 // https://crbug.com/476530.
102 MouseRelatedEvent(const AtomicString& type, 102 MouseRelatedEvent(const AtomicString& type,
103 bool canBubble, 103 bool canBubble,
104 bool cancelable, 104 bool cancelable,
105 AbstractView*, 105 AbstractView*,
106 int detail, 106 int detail,
107 const IntPoint& screenLocation, 107 const IntPoint& screenLocation,
108 const IntPoint& rootFrameLocation, 108 const IntPoint& rootFrameLocation,
109 const IntPoint& movementDelta, 109 const IntPoint& movementDelta,
110 PlatformEvent::Modifiers, 110 PlatformEvent::Modifiers,
111 double platformTimeStamp, 111 TimeTicks platformTimeStamp,
112 PositionType, 112 PositionType,
113 InputDeviceCapabilities* sourceCapabilities = nullptr); 113 InputDeviceCapabilities* sourceCapabilities = nullptr);
114 114
115 MouseRelatedEvent(const AtomicString& type, 115 MouseRelatedEvent(const AtomicString& type,
116 const MouseEventInit& initializer); 116 const MouseEventInit& initializer);
117 117
118 void initCoordinates(const double clientX, const double clientY); 118 void initCoordinates(const double clientX, const double clientY);
119 void receivedTarget() final; 119 void receivedTarget() final;
120 120
121 void computePageLocation(); 121 void computePageLocation();
122 void computeRelativePosition(); 122 void computeRelativePosition();
123 123
124 // Expose these so MouseEvent::initMouseEvent can set them. 124 // Expose these so MouseEvent::initMouseEvent can set them.
125 DoublePoint m_screenLocation; 125 DoublePoint m_screenLocation;
126 DoublePoint m_clientLocation; 126 DoublePoint m_clientLocation;
127 DoublePoint m_movementDelta; 127 DoublePoint m_movementDelta;
128 128
129 private: 129 private:
130 DoublePoint m_pageLocation; 130 DoublePoint m_pageLocation;
131 DoublePoint m_layerLocation; 131 DoublePoint m_layerLocation;
132 DoublePoint m_offsetLocation; 132 DoublePoint m_offsetLocation;
133 DoublePoint m_absoluteLocation; 133 DoublePoint m_absoluteLocation;
134 PositionType m_positionType; 134 PositionType m_positionType;
135 bool m_hasCachedRelativePosition; 135 bool m_hasCachedRelativePosition;
136 }; 136 };
137 137
138 } // namespace blink 138 } // namespace blink
139 139
140 #endif // MouseRelatedEvent_h 140 #endif // MouseRelatedEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/MouseEvent.cpp ('k') | third_party/WebKit/Source/core/events/MouseRelatedEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698