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/MouseEvent.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, 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 int screenX, 50 int screenX,
51 int screenY, 51 int screenY,
52 int windowX, 52 int windowX,
53 int windowY, 53 int windowY,
54 int movementX, 54 int movementX,
55 int movementY, 55 int movementY,
56 PlatformEvent::Modifiers, 56 PlatformEvent::Modifiers,
57 short button, 57 short button,
58 unsigned short buttons, 58 unsigned short buttons,
59 EventTarget* relatedTarget, 59 EventTarget* relatedTarget,
60 double platformTimeStamp, 60 TimeTicks platformTimeStamp,
61 PlatformMouseEvent::SyntheticEventType, 61 PlatformMouseEvent::SyntheticEventType,
62 const String& region, 62 const String& region,
63 const PlatformMouseEvent*); 63 const PlatformMouseEvent*);
64 64
65 static MouseEvent* create(const AtomicString& eventType, 65 static MouseEvent* create(const AtomicString& eventType,
66 AbstractView*, 66 AbstractView*,
67 const PlatformMouseEvent&, 67 const PlatformMouseEvent&,
68 int detail, 68 int detail,
69 Node* relatedTarget); 69 Node* relatedTarget);
70 70
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 int screenX, 145 int screenX,
146 int screenY, 146 int screenY,
147 int windowX, 147 int windowX,
148 int windowY, 148 int windowY,
149 int movementX, 149 int movementX,
150 int movementY, 150 int movementY,
151 PlatformEvent::Modifiers, 151 PlatformEvent::Modifiers,
152 short button, 152 short button,
153 unsigned short buttons, 153 unsigned short buttons,
154 EventTarget* relatedTarget, 154 EventTarget* relatedTarget,
155 double platformTimeStamp, 155 TimeTicks platformTimeStamp,
156 PlatformMouseEvent::SyntheticEventType, 156 PlatformMouseEvent::SyntheticEventType,
157 const String& region, 157 const String& region,
158 const PlatformMouseEvent*); 158 const PlatformMouseEvent*);
159 159
160 MouseEvent(const AtomicString& type, const MouseEventInit&); 160 MouseEvent(const AtomicString& type, const MouseEventInit&);
161 161
162 MouseEvent(); 162 MouseEvent();
163 163
164 short rawButton() const { return m_button; } 164 short rawButton() const { return m_button; }
165 165
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 MouseEvent& event() const; 197 MouseEvent& event() const;
198 198
199 DispatchEventResult dispatchEvent(EventDispatcher&) const override; 199 DispatchEventResult dispatchEvent(EventDispatcher&) const override;
200 }; 200 };
201 201
202 DEFINE_EVENT_TYPE_CASTS(MouseEvent); 202 DEFINE_EVENT_TYPE_CASTS(MouseEvent);
203 203
204 } // namespace blink 204 } // namespace blink
205 205
206 #endif // MouseEvent_h 206 #endif // MouseEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/KeyboardEvent.cpp ('k') | third_party/WebKit/Source/core/events/MouseEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698