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

Side by Side 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: 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/layer_animation_element_unittest.cc ('k') | ui/compositor/layer_animator.cc » ('j') | 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 #ifndef UI_COMPOSITOR_LAYER_ANIMATOR_H_ 5 #ifndef UI_COMPOSITOR_LAYER_ANIMATOR_H_
6 #define UI_COMPOSITOR_LAYER_ANIMATOR_H_ 6 #define UI_COMPOSITOR_LAYER_ANIMATOR_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 gfx::Rect GetTargetBounds() const; 62 gfx::Rect GetTargetBounds() const;
63 63
64 // Sets the opacity on the delegate. May cause an implicit animation. 64 // Sets the opacity on the delegate. May cause an implicit animation.
65 virtual void SetOpacity(float opacity); 65 virtual void SetOpacity(float opacity);
66 float GetTargetOpacity() const; 66 float GetTargetOpacity() const;
67 67
68 // Sets the visibility of the delegate. May cause an implicit animation. 68 // Sets the visibility of the delegate. May cause an implicit animation.
69 virtual void SetVisibility(bool visibility); 69 virtual void SetVisibility(bool visibility);
70 bool GetTargetVisibility() const; 70 bool GetTargetVisibility() const;
71 71
72 // Sets the brightness on the delegate. May cause an implicit animation.
73 virtual void SetBrightness(float brightness);
74 float GetTargetBrightness() const;
75
76 // Sets the grayscale on the delegate. May cause an implicit animation.
77 virtual void SetGrayscale(float grayscale);
78 float GetTargetGrayscale() const;
79
72 // Sets the layer animation delegate the animator is associated with. The 80 // Sets the layer animation delegate the animator is associated with. The
73 // animator does not own the delegate. 81 // animator does not own the delegate.
74 void SetDelegate(LayerAnimationDelegate* delegate); 82 void SetDelegate(LayerAnimationDelegate* delegate);
75 83
76 // Sets the animation preemption strategy. This determines the behaviour if 84 // Sets the animation preemption strategy. This determines the behaviour if
77 // a property is set during an animation. The default is 85 // a property is set during an animation. The default is
78 // IMMEDIATELY_SET_NEW_TARGET (see ImmediatelySetNewTarget below). 86 // IMMEDIATELY_SET_NEW_TARGET (see ImmediatelySetNewTarget below).
79 void set_preemption_strategy(PreemptionStrategy strategy) { 87 void set_preemption_strategy(PreemptionStrategy strategy) {
80 preemption_strategy_ = strategy; 88 preemption_strategy_ = strategy;
81 } 89 }
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 // Observers are notified when layer animations end, are scheduled or are 305 // Observers are notified when layer animations end, are scheduled or are
298 // aborted. 306 // aborted.
299 ObserverList<LayerAnimationObserver> observers_; 307 ObserverList<LayerAnimationObserver> observers_;
300 308
301 DISALLOW_COPY_AND_ASSIGN(LayerAnimator); 309 DISALLOW_COPY_AND_ASSIGN(LayerAnimator);
302 }; 310 };
303 311
304 } // namespace ui 312 } // namespace ui
305 313
306 #endif // UI_COMPOSITOR_LAYER_ANIMATOR_H_ 314 #endif // UI_COMPOSITOR_LAYER_ANIMATOR_H_
OLDNEW
« no previous file with comments | « ui/compositor/layer_animation_element_unittest.cc ('k') | ui/compositor/layer_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698