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

Side by Side Diff: ui/gfx/compositor/test_layer_animation_delegate.cc

Issue 8362006: Reland r107720 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 1 month 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/test_layer_animation_delegate.h ('k') | views/desktop/desktop_window_view.cc » ('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) 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 #include "ui/gfx/compositor/test_layer_animation_delegate.h"
6
7 namespace ui {
8
9 TestLayerAnimationDelegate::TestLayerAnimationDelegate() : opacity_(1.0f) {
10 }
11
12 TestLayerAnimationDelegate::~TestLayerAnimationDelegate() {
13 }
14
15 void TestLayerAnimationDelegate::SetBoundsFromAnimation(
16 const gfx::Rect& bounds) {
17 bounds_ = bounds;
18 }
19
20 void TestLayerAnimationDelegate::SetTransformFromAnimation(
21 const Transform& transform) {
22 transform_ = transform;
23 }
24
25 void TestLayerAnimationDelegate::SetOpacityFromAnimation(float opacity) {
26 opacity_ = opacity;
27 }
28
29 void TestLayerAnimationDelegate::ScheduleDrawForAnimation() {
30 }
31
32 const gfx::Rect& TestLayerAnimationDelegate::GetBoundsForAnimation() const {
33 return bounds_;
34 }
35
36 const Transform& TestLayerAnimationDelegate::GetTransformForAnimation() const {
37 return transform_;
38 }
39
40 float TestLayerAnimationDelegate::GetOpacityForAnimation() const {
41 return opacity_;
42 }
43
44 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gfx/compositor/test_layer_animation_delegate.h ('k') | views/desktop/desktop_window_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698