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

Unified Diff: content/renderer/render_widget.cc

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Update the test Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index a05ca82276102e673b9d897ca11374b9f6b5f14c..3f4fc5c5109c6d124a27feac4456521c79e700bc 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -2234,7 +2234,8 @@ void RenderWidget::DidOverscroll(
const blink::WebFloatSize& overscrollDelta,
const blink::WebFloatSize& accumulatedOverscroll,
const blink::WebFloatPoint& position,
- const blink::WebFloatSize& velocity) {
+ const blink::WebFloatSize& velocity,
+ const blink::WebScrollBoundaryBehavior& behavior) {
#if defined(OS_MACOSX)
// On OSX the user can disable the elastic overscroll effect. If that's the
// case, don't forward the overscroll notification.
@@ -2243,7 +2244,7 @@ void RenderWidget::DidOverscroll(
return;
#endif
input_handler_->DidOverscrollFromBlink(overscrollDelta, accumulatedOverscroll,
- position, velocity);
+ position, velocity, behavior);
}
void RenderWidget::StartCompositor() {

Powered by Google App Engine
This is Rietveld 408576698