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

Side by Side Diff: ui/gfx/compositor/layer_animator_delegate.h

Issue 8362006: Reland r107720 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with parent patch Created 9 years, 2 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
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_GFX_COMPOSITOR_LAYER_ANIMATOR_DELEGATE_H_
6 #define UI_GFX_COMPOSITOR_LAYER_ANIMATOR_DELEGATE_H_
7 #pragma once
8
9 #include "ui/gfx/compositor/compositor_export.h"
10
11 namespace gfx {
12 class Rect;
13 }
14
15 namespace ui {
16
17 class Transform;
18
19 // LayerAnimator modifies the Layer using this interface.
20 class COMPOSITOR_EXPORT LayerAnimatorDelegate {
21 public:
22 virtual void SetBoundsFromAnimator(const gfx::Rect& bounds) = 0;
23 virtual void SetTransformFromAnimator(const Transform& transform) = 0;
24 virtual void SetOpacityFromAnimator(float opacity) = 0;
25
26 protected:
27 virtual ~LayerAnimatorDelegate() {}
28 };
29
30 } // namespace ui
31
32 #endif // UI_GFX_COMPOSITOR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698