| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // converted to the physical direction based on a node's writing
mode. | 236 // converted to the physical direction based on a node's writing
mode. |
| 237 // granularity - The units that the scroll delta parameter is in. | 237 // granularity - The units that the scroll delta parameter is in. |
| 238 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, | 238 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, |
| 239 // the scroll bubbles up to the containing block. | 239 // the scroll bubbles up to the containing block. |
| 240 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. | 240 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. |
| 241 // On output, if provided and a node was scrolled stopNode will p
oint to that node. | 241 // On output, if provided and a node was scrolled stopNode will p
oint to that node. |
| 242 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) | 242 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) |
| 243 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. | 243 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. |
| 244 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = 0, Node**
stopNode = 0, float delta = 1.0f, IntPoint absolutePoint = IntPoint()); | 244 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = 0, Node**
stopNode = 0, float delta = 1.0f, IntPoint absolutePoint = IntPoint()); |
| 245 | 245 |
| 246 bool dispatchSyntheticTouchEventIfEnabled(const PlatformMouseEvent&); | |
| 247 | |
| 248 TouchAction intersectTouchAction(const TouchAction, const TouchAction); | 246 TouchAction intersectTouchAction(const TouchAction, const TouchAction); |
| 249 TouchAction computeEffectiveTouchAction(const LayoutPoint&); | 247 TouchAction computeEffectiveTouchAction(const LayoutPoint&); |
| 250 | 248 |
| 251 bool handleMouseEventAsEmulatedGesture(const PlatformMouseEvent&); | |
| 252 bool handleWheelEventAsEmulatedGesture(const PlatformWheelEvent&); | |
| 253 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowContent); | 249 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowContent); |
| 254 | 250 |
| 255 void invalidateClick(); | 251 void invalidateClick(); |
| 256 | 252 |
| 257 Node* nodeUnderMouse() const; | 253 Node* nodeUnderMouse() const; |
| 258 | 254 |
| 259 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM
ouseOverOut); | 255 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM
ouseOverOut); |
| 260 | 256 |
| 261 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const
PlatformMouseEvent&); | 257 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const
PlatformMouseEvent&); |
| 262 | 258 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 RefPtr<Node> m_scrollGestureHandlingNode; | 378 RefPtr<Node> m_scrollGestureHandlingNode; |
| 383 bool m_lastHitTestResultOverWidget; | 379 bool m_lastHitTestResultOverWidget; |
| 384 RefPtr<Node> m_previousGestureScrolledNode; | 380 RefPtr<Node> m_previousGestureScrolledNode; |
| 385 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture; | 381 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture; |
| 386 | 382 |
| 387 double m_maxMouseMovedDuration; | 383 double m_maxMouseMovedDuration; |
| 388 PlatformEvent::Type m_baseEventType; | 384 PlatformEvent::Type m_baseEventType; |
| 389 bool m_didStartDrag; | 385 bool m_didStartDrag; |
| 390 | 386 |
| 391 bool m_longTapShouldInvokeContextMenu; | 387 bool m_longTapShouldInvokeContextMenu; |
| 392 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss; | |
| 393 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip; | |
| 394 OwnPtr<IntPoint> m_lastSyntheticPanLocation; | |
| 395 float m_syntheticPageScaleFactor; | |
| 396 | 388 |
| 397 Timer<EventHandler> m_activeIntervalTimer; | 389 Timer<EventHandler> m_activeIntervalTimer; |
| 398 double m_lastShowPressTimestamp; | 390 double m_lastShowPressTimestamp; |
| 399 RefPtr<Element> m_lastDeferredTapElement; | 391 RefPtr<Element> m_lastDeferredTapElement; |
| 400 }; | 392 }; |
| 401 | 393 |
| 402 } // namespace WebCore | 394 } // namespace WebCore |
| 403 | 395 |
| 404 #endif // EventHandler_h | 396 #endif // EventHandler_h |
| OLD | NEW |