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

Unified Diff: cc/page_scale_animation.h

Issue 11364189: cc: Clean up PageScaleAnimation for readability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename targetPosition to targetOffset Created 8 years, 1 month 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: cc/page_scale_animation.h
diff --git a/cc/page_scale_animation.h b/cc/page_scale_animation.h
index 2d8f6d568705dfc05c8e2762f853dd8c330e7639..fe09d5b55f9c0b4c7d7e8d3fa97335847f92bce4 100644
--- a/cc/page_scale_animation.h
+++ b/cc/page_scale_animation.h
@@ -58,9 +58,11 @@ private:
void clampTargetScrollOffset();
void inferTargetScrollOffsetFromStartAnchor();
void inferTargetAnchorFromScrollOffsets();
- gfx::SizeF viewportSizeAtScale(float pageScaleFactor) const;
+ gfx::SizeF startViewportSize() const;
+ gfx::SizeF targetViewportSize() const;
float interpAtTime(double time) const;
+ gfx::SizeF viewportSizeAt(float interp) const;
gfx::Vector2dF scrollOffsetAt(float interp) const;
gfx::Vector2dF anchorAt(float interp) const;
gfx::Vector2dF viewportRelativeAnchorAt(float interp) const;

Powered by Google App Engine
This is Rietveld 408576698