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

Side by Side Diff: ui/base/animation/slide_animation.h

Issue 6154001: Move animation code to new ui/base/animation directory.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/base/animation/multi_animation_unittest.cc ('k') | ui/base/animation/slide_animation.cc » ('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) 2010 The Chromium Authors. All rights reserved. 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 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 APP_SLIDE_ANIMATION_H_ 5 #ifndef UI_BASE_ANIMATION_SLIDE_ANIMATION_H_
6 #define APP_SLIDE_ANIMATION_H_ 6 #define UI_BASE_ANIMATION_SLIDE_ANIMATION_H_
7 #pragma once 7 #pragma once
8 8
9 #include "app/linear_animation.h" 9 #include "ui/base/animation/linear_animation.h"
10 #include "app/tween.h" 10 #include "ui/base/animation/tween.h"
11
12 namespace ui {
11 13
12 // Slide Animation 14 // Slide Animation
13 // 15 //
14 // Used for reversible animations and as a general helper class. Typical usage: 16 // Used for reversible animations and as a general helper class. Typical usage:
15 // 17 //
16 // #include "app/slide_animation.h" 18 // #include "ui/base/animation/slide_animation.h"
17 // 19 //
18 // class MyClass : public AnimationDelegate { 20 // class MyClass : public AnimationDelegate {
19 // public: 21 // public:
20 // MyClass() { 22 // MyClass() {
21 // animation_.reset(new SlideAnimation(this)); 23 // animation_.reset(new SlideAnimation(this));
22 // animation_->SetSlideDuration(500); 24 // animation_->SetSlideDuration(500);
23 // } 25 // }
24 // void OnMouseOver() { 26 // void OnMouseOver() {
25 // animation_->Show(); 27 // animation_->Show();
26 // } 28 // }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 double value_end_; 88 double value_end_;
87 double value_current_; 89 double value_current_;
88 90
89 // How long a hover in/out animation will last for. This defaults to 91 // How long a hover in/out animation will last for. This defaults to
90 // kHoverFadeDurationMS, but can be overridden with SetDuration. 92 // kHoverFadeDurationMS, but can be overridden with SetDuration.
91 int slide_duration_; 93 int slide_duration_;
92 94
93 DISALLOW_COPY_AND_ASSIGN(SlideAnimation); 95 DISALLOW_COPY_AND_ASSIGN(SlideAnimation);
94 }; 96 };
95 97
96 #endif // APP_SLIDE_ANIMATION_H_ 98 } // namespace ui
99
100 #endif // UI_BASE_ANIMATION_SLIDE_ANIMATION_H_
OLDNEW
« no previous file with comments | « ui/base/animation/multi_animation_unittest.cc ('k') | ui/base/animation/slide_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698