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

Unified Diff: cc/layer.cc

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revision as per comments, animate scrollbars, fix slow-path PZ scrolling. Created 7 years, 10 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/layer.cc
diff --git a/cc/layer.cc b/cc/layer.cc
index c3ac483feff4ed32cdbb9bcea039615a86e435b4..939a1352e8f683ae33a4f336d45484c44e864ac7 100644
--- a/cc/layer.cc
+++ b/cc/layer.cc
@@ -881,6 +881,12 @@ void Layer::notifyAnimationFinished(double wallClockTime)
m_layerAnimationDelegate->notifyAnimationFinished(wallClockTime);
}
+void Layer::notifyAnimationPropertyUpdate(const AnimationEvent& event)
+{
+ if (event.targetProperty == Animation::Opacity)
+ setOpacity(event.value);
+}
+
void Layer::addLayerAnimationEventObserver(LayerAnimationEventObserver* animationObserver)
{
if (!m_layerAnimationObservers.HasObserver(animationObserver))
« no previous file with comments | « cc/layer.h ('k') | cc/layer_animation_controller.h » ('j') | cc/layer_tree_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698