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

Unified Diff: content/renderer/input/render_widget_input_handler.cc

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Rebase Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/input/render_widget_input_handler.cc
diff --git a/content/renderer/input/render_widget_input_handler.cc b/content/renderer/input/render_widget_input_handler.cc
index 965e4cb7cfb21095d7889ca2d827942fdceecd87..49102e0494876816d9cff389256bb316e48d0607 100644
--- a/content/renderer/input/render_widget_input_handler.cc
+++ b/content/renderer/input/render_widget_input_handler.cc
@@ -44,6 +44,7 @@ using blink::WebInputEventResult;
using blink::WebKeyboardEvent;
using blink::WebMouseEvent;
using blink::WebMouseWheelEvent;
+using blink::WebScrollBoundaryBehavior;
using blink::WebTouchEvent;
using blink::WebTouchPoint;
using ui::DidOverscrollParams;
@@ -376,7 +377,8 @@ void RenderWidgetInputHandler::DidOverscrollFromBlink(
const WebFloatSize& overscrollDelta,
const WebFloatSize& accumulatedOverscroll,
const WebFloatPoint& position,
- const WebFloatSize& velocity) {
+ const WebFloatSize& velocity,
+ const WebScrollBoundaryBehavior& behavior) {
std::unique_ptr<DidOverscrollParams> params(new DidOverscrollParams());
params->accumulated_overscroll = gfx::Vector2dF(
accumulatedOverscroll.width, accumulatedOverscroll.height);
@@ -385,6 +387,7 @@ void RenderWidgetInputHandler::DidOverscrollFromBlink(
params->current_fling_velocity =
gfx::Vector2dF(velocity.width, velocity.height);
params->causal_event_viewport_point = gfx::PointF(position.x, position.y);
+ params->scroll_boundary_behavior = behavior;
// If we're currently handling an event, stash the overscroll data such that
// it can be bundled in the event ack.
« no previous file with comments | « content/renderer/input/render_widget_input_handler.h ('k') | content/renderer/input/widget_input_handler_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698