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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // granularity - The units that the scroll delta parameter is in. | 244 // granularity - The units that the scroll delta parameter is in. |
245 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, | 245 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, |
246 // the scroll bubbles up to the containing block. | 246 // the scroll bubbles up to the containing block. |
247 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. | 247 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. |
248 // On output, if provided and a node was scrolled stopNode will p
oint to that node. | 248 // On output, if provided and a node was scrolled stopNode will p
oint to that node. |
249 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) | 249 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) |
250 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. | 250 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. |
251 ScrollResultOneDimensional scroll(ScrollDirection, ScrollGranularity, Node*
startNode = nullptr, Node** stopNode = nullptr, float delta = 1.0f, IntPoint abs
olutePoint = IntPoint()); | 251 ScrollResultOneDimensional scroll(ScrollDirection, ScrollGranularity, Node*
startNode = nullptr, Node** stopNode = nullptr, float delta = 1.0f, IntPoint abs
olutePoint = IntPoint()); |
252 | 252 |
253 void resetOverscroll(bool didScrollX, bool didScrollY); | 253 void resetOverscroll(bool didScrollX, bool didScrollY); |
254 void handleOverscroll(const ScrollResult&, const PlatformGestureEvent&); | 254 void handleOverscroll(const ScrollResult&, const FloatPoint& position = Floa
tPoint(), const FloatSize& velocity = FloatSize()); |
255 | 255 |
256 void customizedScroll(const Node& startNode, ScrollState&); | 256 void customizedScroll(const Node& startNode, ScrollState&); |
257 | 257 |
258 TouchAction intersectTouchAction(const TouchAction, const TouchAction); | 258 TouchAction intersectTouchAction(const TouchAction, const TouchAction); |
259 TouchAction computeEffectiveTouchAction(const Node&); | 259 TouchAction computeEffectiveTouchAction(const Node&); |
260 | 260 |
261 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); | 261 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); |
262 | 262 |
263 void invalidateClick(); | 263 void invalidateClick(); |
264 | 264 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 // scroll sequence in this frame, or any child frames. Only used | 428 // scroll sequence in this frame, or any child frames. Only used |
429 // with ScrollCustomization. If some delta has been consumed, a | 429 // with ScrollCustomization. If some delta has been consumed, a |
430 // scroll which shouldn't propagate can't cause any element to | 430 // scroll which shouldn't propagate can't cause any element to |
431 // scroll other than the |m_previousGestureScrolledNode|. | 431 // scroll other than the |m_previousGestureScrolledNode|. |
432 bool m_deltaConsumedForScrollSequence; | 432 bool m_deltaConsumedForScrollSequence; |
433 }; | 433 }; |
434 | 434 |
435 } // namespace blink | 435 } // namespace blink |
436 | 436 |
437 #endif // EventHandler_h | 437 #endif // EventHandler_h |
OLD | NEW |