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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( |
222 bool canBubble, | 222 const AtomicString& type, |
223 bool cancelable, | 223 bool canBubble, |
224 AbstractView*, | 224 bool cancelable, |
225 int detail, | 225 AbstractView*, |
226 int screenX, | 226 int detail, |
227 int screenY, | 227 int screenX, |
228 int clientX, | 228 int screenY, |
229 int clientY, | 229 int clientX, |
230 PlatformEvent::Modifiers, | 230 int clientY, |
231 short button, | 231 PlatformEvent::Modifiers, |
232 EventTarget* relatedTarget, | 232 short button, |
233 InputDeviceCapabilities* sourceCapabilities, | 233 EventTarget* relatedTarget, |
234 unsigned short buttons = 0); | 234 const InputDeviceCapabilitiesValue& sourceCapabilities, |
| 235 unsigned short buttons = 0); |
235 | 236 |
236 void initCoordinates(const double clientX, const double clientY); | 237 void initCoordinates(const double clientX, const double clientY); |
237 void initCoordinatesFromRootFrame(int windowX, int windowY); | 238 void initCoordinatesFromRootFrame(int windowX, int windowY); |
238 void receivedTarget() final; | 239 void receivedTarget() final; |
239 | 240 |
240 void computePageLocation(); | 241 void computePageLocation(); |
241 void computeRelativePosition(); | 242 void computeRelativePosition(); |
242 | 243 |
243 DoublePoint m_screenLocation; | 244 DoublePoint m_screenLocation; |
244 DoublePoint m_clientLocation; | 245 DoublePoint m_clientLocation; |
(...skipping 22 matching lines...) Expand all Loading... |
267 MouseEvent& event() const; | 268 MouseEvent& event() const; |
268 | 269 |
269 DispatchEventResult dispatchEvent(EventDispatcher&) const override; | 270 DispatchEventResult dispatchEvent(EventDispatcher&) const override; |
270 }; | 271 }; |
271 | 272 |
272 DEFINE_EVENT_TYPE_CASTS(MouseEvent); | 273 DEFINE_EVENT_TYPE_CASTS(MouseEvent); |
273 | 274 |
274 } // namespace blink | 275 } // namespace blink |
275 | 276 |
276 #endif // MouseEvent_h | 277 #endif // MouseEvent_h |
OLD | NEW |