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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 // False if we reached the root and couldn't scroll anything. | 252 // False if we reached the root and couldn't scroll anything. |
253 // direction - The direction to scroll in. If this is a logical direction, i
t will be | 253 // direction - The direction to scroll in. If this is a logical direction, i
t will be |
254 // converted to the physical direction based on a node's writing
mode. | 254 // converted to the physical direction based on a node's writing
mode. |
255 // granularity - The units that the scroll delta parameter is in. | 255 // granularity - The units that the scroll delta parameter is in. |
256 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, | 256 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, |
257 // the scroll bubbles up to the containing block. | 257 // the scroll bubbles up to the containing block. |
258 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. | 258 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. |
259 // On output, if provided and a node was scrolled stopNode will p
oint to that node. | 259 // On output, if provided and a node was scrolled stopNode will p
oint to that node. |
260 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) | 260 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) |
261 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. | 261 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. |
262 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = nullptr, N
ode** stopNode = nullptr, float delta = 1.0f, IntPoint absolutePoint = IntPoint(
)); | 262 ScrollResultOneDimensional scroll(ScrollDirection, ScrollGranularity, Node*
startNode = nullptr, Node** stopNode = nullptr, float delta = 1.0f, IntPoint abs
olutePoint = IntPoint()); |
263 | 263 |
264 void customizedScroll(const Node& startNode, ScrollState&); | 264 void customizedScroll(const Node& startNode, ScrollState&); |
265 | 265 |
266 TouchAction intersectTouchAction(const TouchAction, const TouchAction); | 266 TouchAction intersectTouchAction(const TouchAction, const TouchAction); |
267 TouchAction computeEffectiveTouchAction(const Node&); | 267 TouchAction computeEffectiveTouchAction(const Node&); |
268 | 268 |
269 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); | 269 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); |
270 | 270 |
271 void invalidateClick(); | 271 void invalidateClick(); |
272 | 272 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 int m_clickCount; | 367 int m_clickCount; |
368 RefPtrWillBeMember<Node> m_clickNode; | 368 RefPtrWillBeMember<Node> m_clickNode; |
369 | 369 |
370 RefPtrWillBeMember<Node> m_dragTarget; | 370 RefPtrWillBeMember<Node> m_dragTarget; |
371 bool m_shouldOnlyFireDragOverEvent; | 371 bool m_shouldOnlyFireDragOverEvent; |
372 | 372 |
373 RefPtrWillBeMember<HTMLFrameSetElement> m_frameSetBeingResized; | 373 RefPtrWillBeMember<HTMLFrameSetElement> m_frameSetBeingResized; |
374 | 374 |
375 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA
rea. | 375 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA
rea. |
376 | 376 |
| 377 FloatPoint m_unusedDelta; |
| 378 FloatPoint m_accumulatedRootOverScroll; |
| 379 |
377 bool m_mousePositionIsUnknown; | 380 bool m_mousePositionIsUnknown; |
378 IntPoint m_lastKnownMousePosition; | 381 IntPoint m_lastKnownMousePosition; |
379 IntPoint m_lastKnownMouseGlobalPosition; | 382 IntPoint m_lastKnownMouseGlobalPosition; |
380 IntPoint m_mouseDownPos; // In our view's coords. | 383 IntPoint m_mouseDownPos; // In our view's coords. |
381 double m_mouseDownTimestamp; | 384 double m_mouseDownTimestamp; |
382 PlatformMouseEvent m_mouseDown; | 385 PlatformMouseEvent m_mouseDown; |
383 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; | 386 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; |
384 | 387 |
385 RefPtrWillBeMember<Node> m_latchedWheelEventNode; | 388 RefPtrWillBeMember<Node> m_latchedWheelEventNode; |
386 bool m_widgetIsLatched; | 389 bool m_widgetIsLatched; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 // scroll sequence in this frame, or any child frames. Only used | 423 // scroll sequence in this frame, or any child frames. Only used |
421 // with ScrollCustomization. If some delta has been consumed, a | 424 // with ScrollCustomization. If some delta has been consumed, a |
422 // scroll which shouldn't propagate can't cause any element to | 425 // scroll which shouldn't propagate can't cause any element to |
423 // scroll other than the |m_previousGestureScrolledNode|. | 426 // scroll other than the |m_previousGestureScrolledNode|. |
424 bool m_deltaConsumedForScrollSequence; | 427 bool m_deltaConsumedForScrollSequence; |
425 }; | 428 }; |
426 | 429 |
427 } // namespace blink | 430 } // namespace blink |
428 | 431 |
429 #endif // EventHandler_h | 432 #endif // EventHandler_h |
OLD | NEW |