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

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

Issue 1879103002: Convert main-thread overscroll parameters into viewport space. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Majid's review Created 4 years, 8 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
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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // Returns true if the scroll was consumed. 300 // Returns true if the scroll was consumed.
301 // direction - The logical direction to scroll in. This will be converted to 301 // direction - The logical direction to scroll in. This will be converted to
302 // a physical direction for each LayoutBox we try to scroll 302 // a physical direction for each LayoutBox we try to scroll
303 // based on that box's writing mode. 303 // based on that box's writing mode.
304 // granularity - The units that the scroll delta parameter is in. 304 // granularity - The units that the scroll delta parameter is in.
305 // startNode - Optional. If provided, start chaining from the given node. 305 // startNode - Optional. If provided, start chaining from the given node.
306 // If not, use the current focus or last clicked node. 306 // If not, use the current focus or last clicked node.
307 bool logicalScroll(ScrollDirection, ScrollGranularity, Node* startNode = nul lptr); 307 bool logicalScroll(ScrollDirection, ScrollGranularity, Node* startNode = nul lptr);
308 308
309 void resetOverscroll(bool didScrollX, bool didScrollY); 309 void resetOverscroll(bool didScrollX, bool didScrollY);
310 void handleOverscroll(const ScrollResult&, const FloatPoint& position = Floa tPoint(), const FloatSize& velocity = FloatSize()); 310 void handleOverscroll(const ScrollResult&, const FloatPoint& positionInRootF rame = FloatPoint(), const FloatSize& velocity = FloatSize());
311 311
312 void customizedScroll(const Node& startNode, ScrollState&); 312 void customizedScroll(const Node& startNode, ScrollState&);
313 313
314 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest:: Active); 314 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest:: Active);
315 315
316 void invalidateClick(); 316 void invalidateClick();
317 317
318 Node* updateMouseEventTargetNode(Node*, const PlatformMouseEvent&); 318 Node* updateMouseEventTargetNode(Node*, const PlatformMouseEvent&);
319 void updateMouseEventTargetNodeAndSendEvents(Node*, const PlatformMouseEvent &, bool isFrameBoundaryTransition = false); 319 void updateMouseEventTargetNodeAndSendEvents(Node*, const PlatformMouseEvent &, bool isFrameBoundaryTransition = false);
320 320
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 // scroll which shouldn't propagate can't cause any element to 488 // scroll which shouldn't propagate can't cause any element to
489 // scroll other than the |m_previousGestureScrolledNode|. 489 // scroll other than the |m_previousGestureScrolledNode|.
490 bool m_deltaConsumedForScrollSequence; 490 bool m_deltaConsumedForScrollSequence;
491 }; 491 };
492 492
493 } // namespace blink 493 } // namespace blink
494 494
495 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); 495 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo);
496 496
497 #endif // EventHandler_h 497 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698