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

Side by Side Diff: ui/compositor/layer_animation_delegate.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.cc ('k') | ui/compositor/layer_animation_element.h » ('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_ANIMATION_DELEGATE_H_ 5 #ifndef UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
6 #define UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_ 6 #define UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
7 7
8 #include "ui/compositor/compositor_export.h" 8 #include "ui/compositor/compositor_export.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 #include "ui/gfx/transform.h" 10 #include "ui/gfx/transform.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 // Layer animations interact with the layers using this interface. 14 // Layer animations interact with the layers using this interface.
15 class COMPOSITOR_EXPORT LayerAnimationDelegate { 15 class COMPOSITOR_EXPORT LayerAnimationDelegate {
16 public: 16 public:
17 virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) = 0; 17 virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) = 0;
18 virtual void SetTransformFromAnimation(const Transform& transform) = 0; 18 virtual void SetTransformFromAnimation(const Transform& transform) = 0;
19 virtual void SetOpacityFromAnimation(float opacity) = 0; 19 virtual void SetOpacityFromAnimation(float opacity) = 0;
20 virtual void SetVisibilityFromAnimation(bool visibility) = 0; 20 virtual void SetVisibilityFromAnimation(bool visibility) = 0;
21 virtual void SetBrightnessFromAnimation(float brightness) = 0;
22 virtual void SetGrayscaleFromAnimation(float grayscale) = 0;
21 virtual void ScheduleDrawForAnimation() = 0; 23 virtual void ScheduleDrawForAnimation() = 0;
22 virtual const gfx::Rect& GetBoundsForAnimation() const = 0; 24 virtual const gfx::Rect& GetBoundsForAnimation() const = 0;
23 virtual const Transform& GetTransformForAnimation() const = 0; 25 virtual const Transform& GetTransformForAnimation() const = 0;
24 virtual float GetOpacityForAnimation() const = 0; 26 virtual float GetOpacityForAnimation() const = 0;
25 virtual bool GetVisibilityForAnimation() const = 0; 27 virtual bool GetVisibilityForAnimation() const = 0;
28 virtual float GetBrightnessForAnimation() const = 0;
29 virtual float GetGrayscaleForAnimation() const = 0;
26 30
27 protected: 31 protected:
28 virtual ~LayerAnimationDelegate() {} 32 virtual ~LayerAnimationDelegate() {}
29 }; 33 };
30 34
31 } // namespace ui 35 } // namespace ui
32 36
33 #endif // UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_ 37 #endif // UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/compositor/layer_animation_element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698