| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 // Returns true if the scroll was consumed. | 300 // Returns true if the scroll was consumed. |
| 301 // direction - The logical direction to scroll in. This will be converted to | 301 // direction - The logical direction to scroll in. This will be converted to |
| 302 // a physical direction for each LayoutBox we try to scroll | 302 // a physical direction for each LayoutBox we try to scroll |
| 303 // based on that box's writing mode. | 303 // based on that box's writing mode. |
| 304 // granularity - The units that the scroll delta parameter is in. | 304 // granularity - The units that the scroll delta parameter is in. |
| 305 // startNode - Optional. If provided, start chaining from the given node. | 305 // startNode - Optional. If provided, start chaining from the given node. |
| 306 // If not, use the current focus or last clicked node. | 306 // If not, use the current focus or last clicked node. |
| 307 bool logicalScroll(ScrollDirection, ScrollGranularity, Node* startNode = nul
lptr); | 307 bool logicalScroll(ScrollDirection, ScrollGranularity, Node* startNode = nul
lptr); |
| 308 | 308 |
| 309 void resetOverscroll(bool didScrollX, bool didScrollY); | 309 void resetOverscroll(bool didScrollX, bool didScrollY); |
| 310 void handleOverscroll(const ScrollResult&, const FloatPoint& position = Floa
tPoint(), const FloatSize& velocity = FloatSize()); | 310 void handleOverscroll(const ScrollResult&, const FloatPoint& positionInRootF
rame = FloatPoint(), const FloatSize& velocity = FloatSize()); |
| 311 | 311 |
| 312 void customizedScroll(const Node& startNode, ScrollState&); | 312 void customizedScroll(const Node& startNode, ScrollState&); |
| 313 | 313 |
| 314 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); | 314 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); |
| 315 | 315 |
| 316 void invalidateClick(); | 316 void invalidateClick(); |
| 317 | 317 |
| 318 Node* updateMouseEventTargetNode(Node*, const PlatformMouseEvent&); | 318 Node* updateMouseEventTargetNode(Node*, const PlatformMouseEvent&); |
| 319 void updateMouseEventTargetNodeAndSendEvents(Node*, const PlatformMouseEvent
&, bool isFrameBoundaryTransition = false); | 319 void updateMouseEventTargetNodeAndSendEvents(Node*, const PlatformMouseEvent
&, bool isFrameBoundaryTransition = false); |
| 320 | 320 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 // scroll which shouldn't propagate can't cause any element to | 488 // scroll which shouldn't propagate can't cause any element to |
| 489 // scroll other than the |m_previousGestureScrolledNode|. | 489 // scroll other than the |m_previousGestureScrolledNode|. |
| 490 bool m_deltaConsumedForScrollSequence; | 490 bool m_deltaConsumedForScrollSequence; |
| 491 }; | 491 }; |
| 492 | 492 |
| 493 } // namespace blink | 493 } // namespace blink |
| 494 | 494 |
| 495 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); | 495 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); |
| 496 | 496 |
| 497 #endif // EventHandler_h | 497 #endif // EventHandler_h |
| OLD | NEW |