Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: Source/core/input/EventHandler.h

Issue 1056983004: OverscrollGlow for mainThread-{BLINK CHANGES} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased to latest Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/frame/RootFrameViewportTest.cpp ('k') | Source/core/input/EventHandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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);
267 void handleOverscroll(const ScrollResult&, const PlatformGestureEvent&);
265 268
266 void customizedScroll(const Node& startNode, ScrollState&); 269 void customizedScroll(const Node& startNode, ScrollState&);
267 270
268 TouchAction intersectTouchAction(const TouchAction, const TouchAction); 271 TouchAction intersectTouchAction(const TouchAction, const TouchAction);
269 TouchAction computeEffectiveTouchAction(const Node&); 272 TouchAction computeEffectiveTouchAction(const Node&);
270 273
271 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest:: Active); 274 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest:: Active);
272 275
273 void invalidateClick(); 276 void invalidateClick();
274 277
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 int m_clickCount; 374 int m_clickCount;
372 RefPtrWillBeMember<Node> m_clickNode; 375 RefPtrWillBeMember<Node> m_clickNode;
373 376
374 RefPtrWillBeMember<Node> m_dragTarget; 377 RefPtrWillBeMember<Node> m_dragTarget;
375 bool m_shouldOnlyFireDragOverEvent; 378 bool m_shouldOnlyFireDragOverEvent;
376 379
377 RefPtrWillBeMember<HTMLFrameSetElement> m_frameSetBeingResized; 380 RefPtrWillBeMember<HTMLFrameSetElement> m_frameSetBeingResized;
378 381
379 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA rea. 382 LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableA rea.
380 383
384 FloatSize m_accumulatedRootOverscroll;
385
381 bool m_mousePositionIsUnknown; 386 bool m_mousePositionIsUnknown;
382 // The last mouse movement position this frame has seen in root frame coordi nates. 387 // The last mouse movement position this frame has seen in root frame coordi nates.
383 IntPoint m_lastKnownMousePosition; 388 IntPoint m_lastKnownMousePosition;
384 IntPoint m_lastKnownMouseGlobalPosition; 389 IntPoint m_lastKnownMouseGlobalPosition;
385 IntPoint m_mouseDownPos; // In our view's coords. 390 IntPoint m_mouseDownPos; // In our view's coords.
386 double m_mouseDownTimestamp; 391 double m_mouseDownTimestamp;
387 PlatformMouseEvent m_mouseDown; 392 PlatformMouseEvent m_mouseDown;
388 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; 393 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken;
389 394
390 RefPtrWillBeMember<Node> m_latchedWheelEventNode; 395 RefPtrWillBeMember<Node> m_latchedWheelEventNode;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // scroll sequence in this frame, or any child frames. Only used 430 // scroll sequence in this frame, or any child frames. Only used
426 // with ScrollCustomization. If some delta has been consumed, a 431 // with ScrollCustomization. If some delta has been consumed, a
427 // scroll which shouldn't propagate can't cause any element to 432 // scroll which shouldn't propagate can't cause any element to
428 // scroll other than the |m_previousGestureScrolledNode|. 433 // scroll other than the |m_previousGestureScrolledNode|.
429 bool m_deltaConsumedForScrollSequence; 434 bool m_deltaConsumedForScrollSequence;
430 }; 435 };
431 436
432 } // namespace blink 437 } // namespace blink
433 438
434 #endif // EventHandler_h 439 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « Source/core/frame/RootFrameViewportTest.cpp ('k') | Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698