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

Unified Diff: android_webview/browser/browser_view_renderer_client.h

Issue 1063853005: Unify Android Webview and Chrome's fling (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: comments Created 5 years, 7 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: android_webview/browser/browser_view_renderer_client.h
diff --git a/android_webview/browser/browser_view_renderer_client.h b/android_webview/browser/browser_view_renderer_client.h
index c4bf8f259a6e90d7ee2804228d4514d5f59d41a9..3929448ba214da82c53130d92f7290d8c81cc43a 100644
--- a/android_webview/browser/browser_view_renderer_client.h
+++ b/android_webview/browser/browser_view_renderer_client.h
@@ -41,7 +41,7 @@ class BrowserViewRendererClient {
virtual void ScrollContainerViewTo(gfx::Vector2d new_value) = 0;
// Is a Android view system managed fling in progress?
- virtual bool IsFlingActive() const = 0;
+ virtual bool IsSmoothScrollingActive() const = 0;
// Sets the following:
// view's scroll offset cap to |max_scroll_offset|,
@@ -55,7 +55,10 @@ class BrowserViewRendererClient {
float max_page_scale_factor) = 0;
// Handle overscroll.
- virtual void DidOverscroll(gfx::Vector2d overscroll_delta) = 0;
+ virtual void DidOverscroll(gfx::Vector2d overscroll_delta,
+ gfx::Vector2dF overscroll_velocity,
+ bool first_overscroll_x,
+ bool first_overscroll_y) = 0;
// Visible for testing
// Called when the parent draw constraints in browser view renderer gets

Powered by Google App Engine
This is Rietveld 408576698