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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 274323004: NOT FOR LANDING - [WebView] Allow fling animation via the LayerScrollOffsetDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: cc/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index b9070ac13ae599d46efc792fe896acf2532d3599..8672a7169d4c8590524cffb7f6e4ed7a4e0c89e7 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -144,7 +144,7 @@ class CC_EXPORT LayerTreeHostImpl
bool anchor_point,
float page_scale,
base::TimeDelta duration) OVERRIDE;
- virtual void SetNeedsAnimate() OVERRIDE;
+ virtual void SetNeedsAnimateFling() OVERRIDE;
virtual bool IsCurrentlyScrollingLayerAt(
const gfx::Point& viewport_point,
InputHandler::ScrollInputType type) OVERRIDE;
@@ -311,6 +311,7 @@ class CC_EXPORT LayerTreeHostImpl
bool visible() const { return visible_; }
void SetNeedsCommit() { client_->SetNeedsCommitOnImplThread(); }
+ void SetNeedsAnimate();
void SetNeedsRedraw();
ManagedMemoryPolicy ActualManagedMemoryPolicy() const;
@@ -494,6 +495,7 @@ class CC_EXPORT LayerTreeHostImpl
void EnforceZeroBudget(bool zero_budget);
void ScrollViewportBy(gfx::Vector2dF scroll_delta);
+ void AnimateFling(base::TimeTicks monotonic_time);
void AnimatePageScale(base::TimeTicks monotonic_time);
void AnimateScrollbars(base::TimeTicks monotonic_time);
void AnimateTopControls(base::TimeTicks monotonic_time);

Powered by Google App Engine
This is Rietveld 408576698