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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 554393008: [Athena] Simple pull to refresh implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/browser/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index ecbe02ca04e5d4dd798d5a9a6599dbc6e03229c1..71aa746f4ed78a4fc602b3e5136360ce4421c4ab 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -1302,7 +1302,8 @@ bool WebContentsViewAura::OnOverscrollUpdate(float delta_x, float delta_y) {
void WebContentsViewAura::OnOverscrollComplete(OverscrollMode mode) {
UMA_HISTOGRAM_ENUMERATION("Overscroll.Completed", mode, OVERSCROLL_COUNT);
- OverscrollUpdateForWebContentsDelegate(0);
+ if (web_contents_->GetDelegate() && IsScrollEndEffectEnabled())
+ web_contents_->GetDelegate()->OverscrollComplete();
sadrul 2014/09/11 04:33:14 Since we send updates to the WebContentsDelegate o
pkotwicz 2014/09/11 22:51:40 I have changed the code to only send updates when
NavigationControllerImpl& controller = web_contents_->GetController();
if (ShouldNavigateForward(controller, mode) ||
ShouldNavigateBack(controller, mode)) {

Powered by Google App Engine
This is Rietveld 408576698