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

Unified Diff: ui/compositor/layer_animator.h

Issue 10800020: Add brightness/grayscale animations and use them for OOBE boot transition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove test change Created 8 years, 5 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: ui/compositor/layer_animator.h
diff --git a/ui/compositor/layer_animator.h b/ui/compositor/layer_animator.h
index 7da7ddf77d6931cd331699e41ca625ce17e79f1c..65ec27a4a2ef7006df068ec48d125539ccf87287 100644
--- a/ui/compositor/layer_animator.h
+++ b/ui/compositor/layer_animator.h
@@ -69,6 +69,14 @@ class COMPOSITOR_EXPORT LayerAnimator : public AnimationContainerElement {
virtual void SetVisibility(bool visibility);
bool GetTargetVisibility() const;
+ // Sets the brightness on the delegate. May cause an implicit animation.
+ virtual void SetBrightness(float brightness);
+ float GetTargetBrightness() const;
+
+ // Sets the grayscale on the delegate. May cause an implicit animation.
+ virtual void SetGrayscale(float grayscale);
+ float GetTargetGrayscale() const;
+
// Sets the layer animation delegate the animator is associated with. The
// animator does not own the delegate.
void SetDelegate(LayerAnimationDelegate* delegate);

Powered by Google App Engine
This is Rietveld 408576698