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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 223 |
224 bool handlePasteGlobalSelection(const PlatformMouseEvent&); | 224 bool handlePasteGlobalSelection(const PlatformMouseEvent&); |
225 | 225 |
226 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::T
ype); | 226 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::T
ype); |
227 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); | 227 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); |
228 bool handleGestureTap(const GestureEventWithHitTestResults&); | 228 bool handleGestureTap(const GestureEventWithHitTestResults&); |
229 bool handleGestureLongPress(const GestureEventWithHitTestResults&); | 229 bool handleGestureLongPress(const GestureEventWithHitTestResults&); |
230 bool handleGestureLongTap(const GestureEventWithHitTestResults&); | 230 bool handleGestureLongTap(const GestureEventWithHitTestResults&); |
231 bool handleGestureScrollUpdate(const PlatformGestureEvent&); | 231 bool handleGestureScrollUpdate(const PlatformGestureEvent&); |
232 bool handleGestureScrollBegin(const PlatformGestureEvent&); | 232 bool handleGestureScrollBegin(const PlatformGestureEvent&); |
233 void clearGestureScrollNodes(); | 233 void clearGestureScrollState(); |
234 | 234 |
235 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const; | 235 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const; |
236 | 236 |
237 OptionalCursor selectCursor(const HitTestResult&); | 237 OptionalCursor selectCursor(const HitTestResult&); |
238 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i
Beam); | 238 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i
Beam); |
239 | 239 |
240 void hoverTimerFired(Timer<EventHandler>*); | 240 void hoverTimerFired(Timer<EventHandler>*); |
241 void cursorUpdateTimerFired(Timer<EventHandler>*); | 241 void cursorUpdateTimerFired(Timer<EventHandler>*); |
242 void activeIntervalTimerFired(Timer<EventHandler>*); | 242 void activeIntervalTimerFired(Timer<EventHandler>*); |
243 | 243 |
(...skipping 10 matching lines...) Expand all Loading... |
254 // False if we reached the root and couldn't scroll anything. | 254 // False if we reached the root and couldn't scroll anything. |
255 // direction - The direction to scroll in. If this is a logical direction, i
t will be | 255 // direction - The direction to scroll in. If this is a logical direction, i
t will be |
256 // converted to the physical direction based on a node's writing
mode. | 256 // converted to the physical direction based on a node's writing
mode. |
257 // granularity - The units that the scroll delta parameter is in. | 257 // granularity - The units that the scroll delta parameter is in. |
258 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, | 258 // startNode - The node to start bubbling the scroll from. If a node can't s
croll, |
259 // the scroll bubbles up to the containing block. | 259 // the scroll bubbles up to the containing block. |
260 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. | 260 // stopNode - On input, if provided and non-null, the node at which we shoul
d stop bubbling on input. |
261 // On output, if provided and a node was scrolled stopNode will p
oint to that node. | 261 // On output, if provided and a node was scrolled stopNode will p
oint to that node. |
262 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) | 262 // delta - The delta to scroll by, in the units of the granularity parameter
. (e.g. pixels, lines, pages, etc.) |
263 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. | 263 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. |
264 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = nullptr, N
ode** stopNode = nullptr, float delta = 1.0f, IntPoint absolutePoint = IntPoint(
)); | 264 ScrollResultOneDimensional scroll(ScrollDirection, ScrollGranularity, Node*
startNode = nullptr, Node** stopNode = nullptr, float delta = 1.0f, IntPoint abs
olutePoint = IntPoint()); |
| 265 |
| 266 void resetOverscroll(bool didScrollX, bool didScrollY, FloatSize& unusedDelt
a); |
265 | 267 |
266 void customizedScroll(const Node& startNode, ScrollState&); | 268 void customizedScroll(const Node& startNode, ScrollState&); |
267 | 269 |
268 TouchAction intersectTouchAction(const TouchAction, const TouchAction); | 270 TouchAction intersectTouchAction(const TouchAction, const TouchAction); |
269 TouchAction computeEffectiveTouchAction(const Node&); | 271 TouchAction computeEffectiveTouchAction(const Node&); |
270 | 272 |
271 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); | 273 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); |
272 | 274 |
273 void invalidateClick(); | 275 void invalidateClick(); |
274 | 276 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 int m_clickCount; | 373 int m_clickCount; |
372 RefPtrWillBeMember<Node> m_clickNode; | 374 RefPtrWillBeMember<Node> m_clickNode; |
373 | 375 |
374 RefPtrWillBeMember<Node> m_dragTarget; | 376 RefPtrWillBeMember<Node> m_dragTarget; |
375 bool m_shouldOnlyFireDragOverEvent; | 377 bool m_shouldOnlyFireDragOverEvent; |
376 | 378 |
377 RefPtrWillBeMember<HTMLFrameSetElement> m_frameSetBeingResized; | 379 RefPtrWillBeMember<HTMLFrameSetElement> m_frameSetBeingResized; |
378 | 380 |
379 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA
rea. | 381 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA
rea. |
380 | 382 |
| 383 FloatSize m_accumulatedRootOverscroll; |
| 384 |
381 bool m_mousePositionIsUnknown; | 385 bool m_mousePositionIsUnknown; |
382 // The last mouse movement position this frame has seen in root frame coordi
nates. | 386 // The last mouse movement position this frame has seen in root frame coordi
nates. |
383 IntPoint m_lastKnownMousePosition; | 387 IntPoint m_lastKnownMousePosition; |
384 IntPoint m_lastKnownMouseGlobalPosition; | 388 IntPoint m_lastKnownMouseGlobalPosition; |
385 IntPoint m_mouseDownPos; // In our view's coords. | 389 IntPoint m_mouseDownPos; // In our view's coords. |
386 double m_mouseDownTimestamp; | 390 double m_mouseDownTimestamp; |
387 PlatformMouseEvent m_mouseDown; | 391 PlatformMouseEvent m_mouseDown; |
388 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; | 392 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; |
389 | 393 |
390 RefPtrWillBeMember<Node> m_latchedWheelEventNode; | 394 RefPtrWillBeMember<Node> m_latchedWheelEventNode; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 // scroll sequence in this frame, or any child frames. Only used | 429 // scroll sequence in this frame, or any child frames. Only used |
426 // with ScrollCustomization. If some delta has been consumed, a | 430 // with ScrollCustomization. If some delta has been consumed, a |
427 // scroll which shouldn't propagate can't cause any element to | 431 // scroll which shouldn't propagate can't cause any element to |
428 // scroll other than the |m_previousGestureScrolledNode|. | 432 // scroll other than the |m_previousGestureScrolledNode|. |
429 bool m_deltaConsumedForScrollSequence; | 433 bool m_deltaConsumedForScrollSequence; |
430 }; | 434 }; |
431 | 435 |
432 } // namespace blink | 436 } // namespace blink |
433 | 437 |
434 #endif // EventHandler_h | 438 #endif // EventHandler_h |
OLD | NEW |