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

Unified Diff: android_webview/browser/browser_view_renderer.h

Issue 23533051: [android_webview] Use a fraction to calculate scroll offset. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert changes from previous patch set as they break AwSettings tests Created 7 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
« no previous file with comments | « no previous file | android_webview/browser/in_process_view_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/browser_view_renderer.h
diff --git a/android_webview/browser/browser_view_renderer.h b/android_webview/browser/browser_view_renderer.h
index f54420c6422e1fe4f4c31be6a5a864125e779ce4..0ae9538484cbafb764625d40288befcba32dc1ca 100644
--- a/android_webview/browser/browser_view_renderer.h
+++ b/android_webview/browser/browser_view_renderer.h
@@ -48,6 +48,15 @@ class BrowserViewRenderer {
// Try to set the view's scroll offset to |new_value|.
virtual void ScrollContainerViewTo(gfx::Vector2d new_value) = 0;
+ // Set the view's scroll offset cap to |new_value|.
+ virtual void SetMaxContainerViewScrollOffset(gfx::Vector2d new_value) = 0;
+
+ // Set the current page scale to |page_scale_factor|.
+ virtual void SetPageScaleFactor(float page_scale_factor) = 0;
+
+ // Set the current contents_size to |contents_size_dip|.
+ virtual void SetContentsSize(gfx::SizeF contents_size_dip) = 0;
+
// Handle overscroll.
virtual void DidOverscroll(gfx::Vector2d overscroll_delta) = 0;
@@ -122,7 +131,6 @@ class BrowserViewRenderer {
// Sets the scale for logical<->physical pixel conversions.
virtual void SetDipScale(float dip_scale) = 0;
- virtual void SetPageScaleFactor(float page_scale_factor) = 0;
// Set the root layer scroll offset to |new_value|.
virtual void ScrollTo(gfx::Vector2d new_value) = 0;
« no previous file with comments | « no previous file | android_webview/browser/in_process_view_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698