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

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

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 years, 7 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/gfx/compositor/layer.cc ('k') | ui/gfx/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_GFX_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
6 #define UI_GFX_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
7 #pragma once
8
9 #include "ui/gfx/rect.h"
10 #include "ui/gfx/transform.h"
11 #include "ui/gfx/compositor/compositor_export.h"
12
13 namespace ui {
14
15 // Layer animations interact with the layers using this interface.
16 class COMPOSITOR_EXPORT LayerAnimationDelegate {
17 public:
18 virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) = 0;
19 virtual void SetTransformFromAnimation(const Transform& transform) = 0;
20 virtual void SetOpacityFromAnimation(float opacity) = 0;
21 virtual void SetVisibilityFromAnimation(bool visibility) = 0;
22 virtual void ScheduleDrawForAnimation() = 0;
23 virtual const gfx::Rect& GetBoundsForAnimation() const = 0;
24 virtual const Transform& GetTransformForAnimation() const = 0;
25 virtual float GetOpacityForAnimation() const = 0;
26 virtual bool GetVisibilityForAnimation() const = 0;
27
28 protected:
29 virtual ~LayerAnimationDelegate() {}
30 };
31
32 } // namespace ui
33
34 #endif // UI_GFX_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/gfx/compositor/layer.cc ('k') | ui/gfx/compositor/layer_animation_element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698