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

Unified Diff: ui/compositor/layer_animation_element.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/layer_animation_delegate.h ('k') | ui/compositor/layer_animation_element.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_animation_element.h
diff --git a/ui/compositor/layer_animation_element.h b/ui/compositor/layer_animation_element.h
index d1e305e796e9be0e5dbd0742da49df5f9784a62f..89bf26f7499d5b0383f3675d9acc3cdc634fed4f 100644
--- a/ui/compositor/layer_animation_element.h
+++ b/ui/compositor/layer_animation_element.h
@@ -28,7 +28,9 @@ class COMPOSITOR_EXPORT LayerAnimationElement {
TRANSFORM = 0,
BOUNDS,
OPACITY,
- VISIBILITY
+ VISIBILITY,
+ BRIGHTNESS,
+ GRAYSCALE
};
struct COMPOSITOR_EXPORT TargetValue {
@@ -40,6 +42,8 @@ class COMPOSITOR_EXPORT LayerAnimationElement {
Transform transform;
float opacity;
bool visibility;
+ float brightness;
+ float grayscale;
};
typedef std::set<AnimatableProperty> AnimatableProperties;
@@ -83,6 +87,18 @@ class COMPOSITOR_EXPORT LayerAnimationElement {
bool visibility,
base::TimeDelta duration);
+ // Creates an element that transitions to the given brightness.
+ // The caller owns the return value.
+ static LayerAnimationElement* CreateBrightnessElement(
+ float brightness,
+ base::TimeDelta duration);
+
+ // Creates an element that transitions to the given grayscale value.
+ // The caller owns the return value.
+ static LayerAnimationElement* CreateGrayscaleElement(
+ float grayscale,
+ base::TimeDelta duration);
+
// Creates an element that pauses the given properties. The caller owns the
// return value.
static LayerAnimationElement* CreatePauseElement(
« no previous file with comments | « ui/compositor/layer_animation_delegate.h ('k') | ui/compositor/layer_animation_element.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698