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

Side by Side Diff: ui/gfx/compositor/test/test_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
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_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_
6 #define UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "ui/gfx/rect.h"
11 #include "ui/gfx/transform.h"
12 #include "ui/gfx/compositor/layer_animation_delegate.h"
13
14 namespace ui {
15
16 class TestLayerAnimationDelegate : public LayerAnimationDelegate {
17 public:
18 TestLayerAnimationDelegate();
19 explicit TestLayerAnimationDelegate(const LayerAnimationDelegate& other);
20 virtual ~TestLayerAnimationDelegate();
21
22 // Implementation of LayerAnimationDelegate
23 virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) OVERRIDE;
24 virtual void SetTransformFromAnimation(const Transform& transform) OVERRIDE;
25 virtual void SetOpacityFromAnimation(float opacity) OVERRIDE;
26 virtual void SetVisibilityFromAnimation(bool visibility) OVERRIDE;
27 virtual void ScheduleDrawForAnimation() OVERRIDE;
28 virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE;
29 virtual const Transform& GetTransformForAnimation() const OVERRIDE;
30 virtual float GetOpacityForAnimation() const OVERRIDE;
31 virtual bool GetVisibilityForAnimation() const OVERRIDE;
32
33 private:
34 gfx::Rect bounds_;
35 Transform transform_;
36 float opacity_;
37 bool visibility_;
38
39 // Allow copy and assign.
40 };
41
42 } // namespace ui
43
44 #endif // UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/gfx/compositor/test/test_compositor_host_win.cc ('k') | ui/gfx/compositor/test/test_layer_animation_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698