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

Unified Diff: content/renderer/render_widget.cc

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Update input_messages with the order in the enum. 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/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index c0f66e744dc5eb2266fcc095035d97ea424a176f..675fb0e65bf5d51a9496cc57497235784a0443ad 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -2275,7 +2275,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.
@@ -2284,7 +2285,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