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

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

Issue 1752043002: Merged FrameView and LayoutBox scrolling in EventHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@invertScrollCustomizationPath
Patch Set: Added comment on LayoutView::scroll Created 4 years, 9 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 void activeIntervalTimerFired(Timer<EventHandler>*); 259 void activeIntervalTimerFired(Timer<EventHandler>*);
260 260
261 void fakeMouseMoveEventTimerFired(Timer<EventHandler>*); 261 void fakeMouseMoveEventTimerFired(Timer<EventHandler>*);
262 void cancelFakeMouseMoveEvent(); 262 void cancelFakeMouseMoveEvent();
263 bool isCursorVisible() const; 263 bool isCursorVisible() const;
264 void updateCursor(); 264 void updateCursor();
265 265
266 ScrollableArea* associatedScrollableArea(const PaintLayer*) const; 266 ScrollableArea* associatedScrollableArea(const PaintLayer*) const;
267 267
268 // Performs a chaining scroll, within a *single* frame, starting from a 268 // Performs a chaining scroll, within a *single* frame, starting from a
269 // given node and optionally stopping on a given node. Does *not* attempt 269 // given node and optionally stopping on a given node.
270 // to scroll the layout view.
271 // granularity - The units that the scroll delta parameter is in. 270 // granularity - The units that the scroll delta parameter is in.
272 // delta - The delta to scroll by, in the units of the granularity param 271 // delta - The delta to scroll by, in the units of the granularity param
273 // (e.g. pixels, lines, pages, etc.). These are in a physical 272 // (e.g. pixels, lines, pages, etc.). These are in a physical
274 // direction. i.e. Positive is down and right. 273 // direction. i.e. Positive is down and right.
275 // startNode - The node to start the scroll chaining from. 274 // startNode - The node to start the scroll chaining from.
276 // stopNode - On input, if provided and non-null, the node at which we 275 // stopNode - On input, if non-null, the node at which we should stop
277 // should stop chaining. On output, if provided and a node was 276 // chaining. On output, if provided and a node was scrolled,
278 // scrolled, stopNode will point to that node. 277 // stopNode will point to that node.
279 ScrollResult physicalScroll(ScrollGranularity, const FloatSize& delta, Node* startNode, Node** stopNode = nullptr); 278 // consumed - [OUT] Whether the scroll was consumed. This is different than
279 // ScrollResult.didScroll since we might not have scrolled but
280 // have reached the stopNode and thus don't want to continue
281 // chaining the scroll.
282 ScrollResult physicalScroll(ScrollGranularity, const FloatSize& delta, Node* startNode, Node** stopNode, bool& consumed);
tdresser 2016/03/03 15:28:27 Output parameters must be pointers, according to t
bokan 2016/03/03 19:53:26 Done.
280 283
281 // Performs a chaining logical scroll, within a *single* frame, starting 284 // Performs a chaining logical scroll, within a *single* frame, starting
282 // from either a provided starting node or a default based on the focused or 285 // from either a provided starting node or a default based on the focused or
283 // most recently clicked node. 286 // most recently clicked node.
284 // Returns true if the scroll was consumed. 287 // Returns true if the scroll was consumed.
285 // direction - The logical direction to scroll in. This will be converted to 288 // direction - The logical direction to scroll in. This will be converted to
286 // a physical direction for each LayoutBox we try to scroll 289 // a physical direction for each LayoutBox we try to scroll
287 // based on that box's writing mode. 290 // based on that box's writing mode.
288 // granularity - The units that the scroll delta parameter is in. 291 // granularity - The units that the scroll delta parameter is in.
289 // startNode - Optional. If provided, start chaining from the given node. 292 // startNode - Optional. If provided, start chaining from the given node.
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 // scroll which shouldn't propagate can't cause any element to 471 // scroll which shouldn't propagate can't cause any element to
469 // scroll other than the |m_previousGestureScrolledNode|. 472 // scroll other than the |m_previousGestureScrolledNode|.
470 bool m_deltaConsumedForScrollSequence; 473 bool m_deltaConsumedForScrollSequence;
471 }; 474 };
472 475
473 } // namespace blink 476 } // namespace blink
474 477
475 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); 478 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo);
476 479
477 #endif // EventHandler_h 480 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698