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

Unified Diff: ui/compositor/test/test_layer_animation_delegate.cc

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: fix hide animation 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
« no previous file with comments | « ui/compositor/test/test_layer_animation_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/test_layer_animation_delegate.cc
diff --git a/ui/compositor/test/test_layer_animation_delegate.cc b/ui/compositor/test/test_layer_animation_delegate.cc
index b4cd481273674a7820f8bf2e3788f2b243139847..74275715dab4ade0e9b33f58c5857bad835aefca 100644
--- a/ui/compositor/test/test_layer_animation_delegate.cc
+++ b/ui/compositor/test/test_layer_animation_delegate.cc
@@ -40,6 +40,14 @@ void TestLayerAnimationDelegate::SetVisibilityFromAnimation(bool visibility) {
visibility_ = visibility;
}
+void TestLayerAnimationDelegate::SetBrightnessFromAnimation(float brightness) {
+ brightness_ = brightness;
+}
+
+void TestLayerAnimationDelegate::SetGrayscaleFromAnimation(float grayscale) {
+ grayscale_ = grayscale;
+}
+
void TestLayerAnimationDelegate::ScheduleDrawForAnimation() {
}
@@ -59,4 +67,12 @@ bool TestLayerAnimationDelegate::GetVisibilityForAnimation() const {
return visibility_;
}
+float TestLayerAnimationDelegate::GetBrightnessForAnimation() const {
+ return brightness_;
+}
+
+float TestLayerAnimationDelegate::GetGrayscaleForAnimation() const {
+ return grayscale_;
+}
+
} // namespace ui
« no previous file with comments | « ui/compositor/test/test_layer_animation_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698