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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // granularity - The units that the scroll delta parameter is in. | 262 // granularity - The units that the scroll delta parameter is in. |
263 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, | 263 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, |
264 // the scroll bubbles up to the containing block. | 264 // the scroll bubbles up to the containing block. |
265 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. | 265 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. |
266 // On output, if provided and a node was scrolled stopNode will p
oint to that node. | 266 // On output, if provided and a node was scrolled stopNode will p
oint to that node. |
267 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) | 267 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) |
268 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. | 268 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. |
269 ScrollResultOneDimensional scroll(ScrollDirection, ScrollGranularity, Node*
startNode = nullptr, Node** stopNode = nullptr, float delta = 1.0f, IntPoint abs
olutePoint = IntPoint()); | 269 ScrollResultOneDimensional scroll(ScrollDirection, ScrollGranularity, Node*
startNode = nullptr, Node** stopNode = nullptr, float delta = 1.0f, IntPoint abs
olutePoint = IntPoint()); |
270 | 270 |
271 void resetOverscroll(bool didScrollX, bool didScrollY); | 271 void resetOverscroll(bool didScrollX, bool didScrollY); |
272 void handleOverscroll(const ScrollResult&, const PlatformGestureEvent&); | 272 void handleOverscroll(const ScrollResult&, const FloatPoint& position = Floa
tPoint(), const FloatSize& velocity = FloatSize()); |
273 | 273 |
274 void customizedScroll(const Node& startNode, ScrollState&); | 274 void customizedScroll(const Node& startNode, ScrollState&); |
275 | 275 |
276 TouchAction intersectTouchAction(const TouchAction, const TouchAction); | 276 TouchAction intersectTouchAction(const TouchAction, const TouchAction); |
277 TouchAction computeEffectiveTouchAction(const Node&); | 277 TouchAction computeEffectiveTouchAction(const Node&); |
278 | 278 |
279 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); | 279 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); |
280 | 280 |
281 void invalidateClick(); | 281 void invalidateClick(); |
282 | 282 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 // scroll which shouldn't propagate can't cause any element to | 438 // scroll which shouldn't propagate can't cause any element to |
439 // scroll other than the |m_previousGestureScrolledNode|. | 439 // scroll other than the |m_previousGestureScrolledNode|. |
440 bool m_deltaConsumedForScrollSequence; | 440 bool m_deltaConsumedForScrollSequence; |
441 }; | 441 }; |
442 | 442 |
443 } // namespace blink | 443 } // namespace blink |
444 | 444 |
445 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); | 445 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); |
446 | 446 |
447 #endif // EventHandler_h | 447 #endif // EventHandler_h |
OLD | NEW |