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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // the local frame. | 192 // the local frame. |
193 const DoublePoint& absoluteLocation() const { return m_absoluteLocation; } | 193 const DoublePoint& absoluteLocation() const { return m_absoluteLocation; } |
194 | 194 |
195 DECLARE_VIRTUAL_TRACE(); | 195 DECLARE_VIRTUAL_TRACE(); |
196 | 196 |
197 protected: | 197 protected: |
198 MouseEvent(const AtomicString& type, | 198 MouseEvent(const AtomicString& type, |
199 bool canBubble, | 199 bool canBubble, |
200 bool cancelable, | 200 bool cancelable, |
201 AbstractView*, | 201 AbstractView*, |
| 202 PlatformMouseEvent::SyntheticEventType, |
| 203 const String& region, |
| 204 const WebMouseEvent&); |
| 205 |
| 206 MouseEvent(const AtomicString& type, |
| 207 bool canBubble, |
| 208 bool cancelable, |
| 209 AbstractView*, |
202 int detail, | 210 int detail, |
203 int screenX, | 211 int screenX, |
204 int screenY, | 212 int screenY, |
205 int windowX, | 213 int windowX, |
206 int windowY, | 214 int windowY, |
207 int movementX, | 215 int movementX, |
208 int movementY, | 216 int movementY, |
209 PlatformEvent::Modifiers, | 217 PlatformEvent::Modifiers, |
210 short button, | 218 short button, |
211 unsigned short buttons, | 219 unsigned short buttons, |
(...skipping 20 matching lines...) Expand all Loading... |
232 int screenY, | 240 int screenY, |
233 int clientX, | 241 int clientX, |
234 int clientY, | 242 int clientY, |
235 PlatformEvent::Modifiers, | 243 PlatformEvent::Modifiers, |
236 short button, | 244 short button, |
237 EventTarget* relatedTarget, | 245 EventTarget* relatedTarget, |
238 InputDeviceCapabilities* sourceCapabilities, | 246 InputDeviceCapabilities* sourceCapabilities, |
239 unsigned short buttons = 0); | 247 unsigned short buttons = 0); |
240 | 248 |
241 void initCoordinates(const double clientX, const double clientY); | 249 void initCoordinates(const double clientX, const double clientY); |
| 250 void initCoordinatesFromRootFrame(int windowX, int windowY); |
242 void receivedTarget() final; | 251 void receivedTarget() final; |
243 | 252 |
244 void computePageLocation(); | 253 void computePageLocation(); |
245 void computeRelativePosition(); | 254 void computeRelativePosition(); |
246 | 255 |
247 DoublePoint m_screenLocation; | 256 DoublePoint m_screenLocation; |
248 DoublePoint m_clientLocation; | 257 DoublePoint m_clientLocation; |
249 DoublePoint m_movementDelta; | 258 DoublePoint m_movementDelta; |
250 | 259 |
251 DoublePoint m_pageLocation; | 260 DoublePoint m_pageLocation; |
(...skipping 19 matching lines...) Expand all Loading... |
271 MouseEvent& event() const; | 280 MouseEvent& event() const; |
272 | 281 |
273 DispatchEventResult dispatchEvent(EventDispatcher&) const override; | 282 DispatchEventResult dispatchEvent(EventDispatcher&) const override; |
274 }; | 283 }; |
275 | 284 |
276 DEFINE_EVENT_TYPE_CASTS(MouseEvent); | 285 DEFINE_EVENT_TYPE_CASTS(MouseEvent); |
277 | 286 |
278 } // namespace blink | 287 } // namespace blink |
279 | 288 |
280 #endif // MouseEvent_h | 289 #endif // MouseEvent_h |
OLD | NEW |