| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // converted to the physical direction based on a node's writing
mode. | 235 // converted to the physical direction based on a node's writing
mode. |
| 236 // granularity - The units that the scroll delta parameter is in. | 236 // granularity - The units that the scroll delta parameter is in. |
| 237 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, | 237 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, |
| 238 // the scroll bubbles up to the containing block. | 238 // the scroll bubbles up to the containing block. |
| 239 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. | 239 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. |
| 240 // On output, if provided and a node was scrolled stopNode will p
oint to that node. | 240 // On output, if provided and a node was scrolled stopNode will p
oint to that node. |
| 241 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) | 241 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) |
| 242 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. | 242 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. |
| 243 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = 0, Node**
stopNode = 0, float delta = 1.0f, IntPoint absolutePoint = IntPoint()); | 243 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = 0, Node**
stopNode = 0, float delta = 1.0f, IntPoint absolutePoint = IntPoint()); |
| 244 | 244 |
| 245 bool dispatchSyntheticTouchEventIfEnabled(const PlatformMouseEvent&); | |
| 246 | |
| 247 TouchAction intersectTouchAction(const TouchAction, const TouchAction); | 245 TouchAction intersectTouchAction(const TouchAction, const TouchAction); |
| 248 TouchAction computeEffectiveTouchAction(const LayoutPoint&); | 246 TouchAction computeEffectiveTouchAction(const LayoutPoint&); |
| 249 | 247 |
| 250 bool handleMouseEventAsEmulatedGesture(const PlatformMouseEvent&); | |
| 251 bool handleWheelEventAsEmulatedGesture(const PlatformWheelEvent&); | |
| 252 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowContent); | 248 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active | HitTestRequest::ConfusingAndOftenMisusedDisallowShadowContent); |
| 253 | 249 |
| 254 void invalidateClick(); | 250 void invalidateClick(); |
| 255 | 251 |
| 256 Node* nodeUnderMouse() const; | 252 Node* nodeUnderMouse() const; |
| 257 | 253 |
| 258 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM
ouseOverOut); | 254 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM
ouseOverOut); |
| 259 | 255 |
| 260 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const
PlatformMouseEvent&); | 256 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const
PlatformMouseEvent&); |
| 261 | 257 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 RefPtr<Node> m_scrollGestureHandlingNode; | 377 RefPtr<Node> m_scrollGestureHandlingNode; |
| 382 bool m_lastHitTestResultOverWidget; | 378 bool m_lastHitTestResultOverWidget; |
| 383 RefPtr<Node> m_previousGestureScrolledNode; | 379 RefPtr<Node> m_previousGestureScrolledNode; |
| 384 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture; | 380 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture; |
| 385 | 381 |
| 386 double m_maxMouseMovedDuration; | 382 double m_maxMouseMovedDuration; |
| 387 PlatformEvent::Type m_baseEventType; | 383 PlatformEvent::Type m_baseEventType; |
| 388 bool m_didStartDrag; | 384 bool m_didStartDrag; |
| 389 | 385 |
| 390 bool m_longTapShouldInvokeContextMenu; | 386 bool m_longTapShouldInvokeContextMenu; |
| 391 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss; | |
| 392 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip; | |
| 393 OwnPtr<IntPoint> m_lastSyntheticPanLocation; | |
| 394 float m_syntheticPageScaleFactor; | |
| 395 | 387 |
| 396 Timer<EventHandler> m_activeIntervalTimer; | 388 Timer<EventHandler> m_activeIntervalTimer; |
| 397 double m_lastShowPressTimestamp; | 389 double m_lastShowPressTimestamp; |
| 398 RefPtr<Element> m_lastDeferredTapElement; | 390 RefPtr<Element> m_lastDeferredTapElement; |
| 399 }; | 391 }; |
| 400 | 392 |
| 401 } // namespace WebCore | 393 } // namespace WebCore |
| 402 | 394 |
| 403 #endif // EventHandler_h | 395 #endif // EventHandler_h |
| OLD | NEW |