OLD | NEW |
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 const AtomicString& eventType, | 62 const AtomicString& eventType, |
63 const MouseEventInit&); | 63 const MouseEventInit&); |
64 | 64 |
65 static MouseEvent* create(const AtomicString& eventType, | 65 static MouseEvent* create(const AtomicString& eventType, |
66 AbstractView*, | 66 AbstractView*, |
67 Event* underlyingEvent, | 67 Event* underlyingEvent, |
68 SimulatedClickCreationScope); | 68 SimulatedClickCreationScope); |
69 | 69 |
70 ~MouseEvent() override; | 70 ~MouseEvent() override; |
71 | 71 |
72 static unsigned short platformModifiersToButtons(unsigned modifiers); | 72 static unsigned short webInputEventModifiersToButtons(unsigned modifiers); |
73 | 73 |
74 void initMouseEvent(ScriptState*, | 74 void initMouseEvent(ScriptState*, |
75 const AtomicString& type, | 75 const AtomicString& type, |
76 bool canBubble, | 76 bool canBubble, |
77 bool cancelable, | 77 bool cancelable, |
78 AbstractView*, | 78 AbstractView*, |
79 int detail, | 79 int detail, |
80 int screenX, | 80 int screenX, |
81 int screenY, | 81 int screenY, |
82 int clientX, | 82 int clientX, |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 bool canBubble, | 195 bool canBubble, |
196 bool cancelable, | 196 bool cancelable, |
197 AbstractView*, | 197 AbstractView*, |
198 int detail, | 198 int detail, |
199 int screenX, | 199 int screenX, |
200 int screenY, | 200 int screenY, |
201 int windowX, | 201 int windowX, |
202 int windowY, | 202 int windowY, |
203 int movementX, | 203 int movementX, |
204 int movementY, | 204 int movementY, |
205 PlatformEvent::Modifiers, | 205 WebInputEvent::Modifiers, |
206 short button, | 206 short button, |
207 unsigned short buttons, | 207 unsigned short buttons, |
208 EventTarget* relatedTarget, | 208 EventTarget* relatedTarget, |
209 TimeTicks platformTimeStamp, | 209 TimeTicks platformTimeStamp, |
210 SyntheticEventType, | 210 SyntheticEventType, |
211 const String& region); | 211 const String& region); |
212 | 212 |
213 MouseEvent(const AtomicString& type, const MouseEventInit&); | 213 MouseEvent(const AtomicString& type, const MouseEventInit&); |
214 | 214 |
215 MouseEvent(); | 215 MouseEvent(); |
216 | 216 |
217 short rawButton() const { return m_button; } | 217 short rawButton() const { return m_button; } |
218 | 218 |
219 private: | 219 private: |
220 friend class MouseEventDispatchMediator; | 220 friend class MouseEventDispatchMediator; |
221 void initMouseEventInternal(const AtomicString& type, | 221 void initMouseEventInternal(const AtomicString& type, |
222 bool canBubble, | 222 bool canBubble, |
223 bool cancelable, | 223 bool cancelable, |
224 AbstractView*, | 224 AbstractView*, |
225 int detail, | 225 int detail, |
226 int screenX, | 226 int screenX, |
227 int screenY, | 227 int screenY, |
228 int clientX, | 228 int clientX, |
229 int clientY, | 229 int clientY, |
230 PlatformEvent::Modifiers, | 230 WebInputEvent::Modifiers, |
231 short button, | 231 short button, |
232 EventTarget* relatedTarget, | 232 EventTarget* relatedTarget, |
233 InputDeviceCapabilities* sourceCapabilities, | 233 InputDeviceCapabilities* sourceCapabilities, |
234 unsigned short buttons = 0); | 234 unsigned short buttons = 0); |
235 | 235 |
236 void initCoordinates(const double clientX, const double clientY); | 236 void initCoordinates(const double clientX, const double clientY); |
237 void initCoordinatesFromRootFrame(int windowX, int windowY); | 237 void initCoordinatesFromRootFrame(int windowX, int windowY); |
238 void receivedTarget() final; | 238 void receivedTarget() final; |
239 | 239 |
240 void computePageLocation(); | 240 void computePageLocation(); |
(...skipping 26 matching lines...) Expand all Loading... |
267 MouseEvent& event() const; | 267 MouseEvent& event() const; |
268 | 268 |
269 DispatchEventResult dispatchEvent(EventDispatcher&) const override; | 269 DispatchEventResult dispatchEvent(EventDispatcher&) const override; |
270 }; | 270 }; |
271 | 271 |
272 DEFINE_EVENT_TYPE_CASTS(MouseEvent); | 272 DEFINE_EVENT_TYPE_CASTS(MouseEvent); |
273 | 273 |
274 } // namespace blink | 274 } // namespace blink |
275 | 275 |
276 #endif // MouseEvent_h | 276 #endif // MouseEvent_h |
OLD | NEW |