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

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

Issue 645223003: Change overscroll functions to pass floats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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.h
diff --git a/content/browser/web_contents/web_contents_view_aura.h b/content/browser/web_contents/web_contents_view_aura.h
index 2105c0453aa46a4e7d3eb056d87bb1e746b080fe..84e91faf52b8e78de57a82980beddd1a024cdd33 100644
--- a/content/browser/web_contents/web_contents_view_aura.h
+++ b/content/browser/web_contents/web_contents_view_aura.h
@@ -88,7 +88,7 @@ class WebContentsViewAura
// Returns the amount the animating window should be translated in response to
// the overscroll gesture.
- gfx::Vector2d GetTranslationForOverscroll(int delta_x, int delta_y);
+ gfx::Vector2dF GetTranslationForOverscroll(float delta_x, float delta_y);
// A window showing the screenshot is overlayed during a navigation triggered
// by overscroll. This function sets this up.
@@ -100,7 +100,7 @@ class WebContentsViewAura
void AttachTouchEditableToRenderView();
- void OverscrollUpdateForWebContentsDelegate(int delta_y);
+ void OverscrollUpdateForWebContentsDelegate(float delta_y);
// Overridden from WebContentsView:
virtual gfx::NativeView GetNativeView() const override;

Powered by Google App Engine
This is Rietveld 408576698