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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/compositor/test/test_layer_animation_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/compositor/test/test_layer_animation_delegate.h" 5 #include "ui/compositor/test/test_layer_animation_delegate.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 TestLayerAnimationDelegate::TestLayerAnimationDelegate() 9 TestLayerAnimationDelegate::TestLayerAnimationDelegate()
10 : opacity_(1.0f), 10 : opacity_(1.0f),
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 34
35 void TestLayerAnimationDelegate::SetOpacityFromAnimation(float opacity) { 35 void TestLayerAnimationDelegate::SetOpacityFromAnimation(float opacity) {
36 opacity_ = opacity; 36 opacity_ = opacity;
37 } 37 }
38 38
39 void TestLayerAnimationDelegate::SetVisibilityFromAnimation(bool visibility) { 39 void TestLayerAnimationDelegate::SetVisibilityFromAnimation(bool visibility) {
40 visibility_ = visibility; 40 visibility_ = visibility;
41 } 41 }
42 42
43 void TestLayerAnimationDelegate::SetBrightnessFromAnimation(float brightness) {
44 brightness_ = brightness;
45 }
46
47 void TestLayerAnimationDelegate::SetGrayscaleFromAnimation(float grayscale) {
48 grayscale_ = grayscale;
49 }
50
43 void TestLayerAnimationDelegate::ScheduleDrawForAnimation() { 51 void TestLayerAnimationDelegate::ScheduleDrawForAnimation() {
44 } 52 }
45 53
46 const gfx::Rect& TestLayerAnimationDelegate::GetBoundsForAnimation() const { 54 const gfx::Rect& TestLayerAnimationDelegate::GetBoundsForAnimation() const {
47 return bounds_; 55 return bounds_;
48 } 56 }
49 57
50 const Transform& TestLayerAnimationDelegate::GetTransformForAnimation() const { 58 const Transform& TestLayerAnimationDelegate::GetTransformForAnimation() const {
51 return transform_; 59 return transform_;
52 } 60 }
53 61
54 float TestLayerAnimationDelegate::GetOpacityForAnimation() const { 62 float TestLayerAnimationDelegate::GetOpacityForAnimation() const {
55 return opacity_; 63 return opacity_;
56 } 64 }
57 65
58 bool TestLayerAnimationDelegate::GetVisibilityForAnimation() const { 66 bool TestLayerAnimationDelegate::GetVisibilityForAnimation() const {
59 return visibility_; 67 return visibility_;
60 } 68 }
61 69
70 float TestLayerAnimationDelegate::GetBrightnessForAnimation() const {
71 return brightness_;
72 }
73
74 float TestLayerAnimationDelegate::GetGrayscaleForAnimation() const {
75 return grayscale_;
76 }
77
62 } // namespace ui 78 } // namespace ui
OLDNEW
« 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