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

Side by Side Diff: ui/views/animation/bounds_animator.h

Issue 10630013: Adds LocationBarContainer that contains (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove set_view_to_focus Created 8 years, 6 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 | « chrome/chrome_browser.gypi ('k') | ui/views/animation/bounds_animator.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) 2012 The Chromium Authors. All rights reserved. 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 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 UI_VIEWS_ANIMATION_BOUNDS_ANIMATOR_H_ 5 #ifndef UI_VIEWS_ANIMATION_BOUNDS_ANIMATOR_H_
6 #define UI_VIEWS_ANIMATION_BOUNDS_ANIMATOR_H_ 6 #define UI_VIEWS_ANIMATION_BOUNDS_ANIMATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // already an animation running for the view it's stopped and a new one 53 // already an animation running for the view it's stopped and a new one
54 // started. If an AnimationDelegate has been set for |view| it is removed 54 // started. If an AnimationDelegate has been set for |view| it is removed
55 // (after being notified that the animation was canceled). 55 // (after being notified that the animation was canceled).
56 void AnimateViewTo(View* view, const gfx::Rect& target); 56 void AnimateViewTo(View* view, const gfx::Rect& target);
57 57
58 // Similar to |AnimateViewTo|, but does not reset the animation, only the 58 // Similar to |AnimateViewTo|, but does not reset the animation, only the
59 // target bounds. If |view| is not being animated this is the same as 59 // target bounds. If |view| is not being animated this is the same as
60 // invoking |AnimateViewTo|. 60 // invoking |AnimateViewTo|.
61 void SetTargetBounds(View* view, const gfx::Rect& target); 61 void SetTargetBounds(View* view, const gfx::Rect& target);
62 62
63 // Returns the target bounds for the specified view. If |view| is not
64 // animating its current bounds is returned.
65 gfx::Rect GetTargetBounds(View* view);
66
63 // Sets the animation for the specified view. BoundsAnimator takes ownership 67 // Sets the animation for the specified view. BoundsAnimator takes ownership
64 // of the specified animation. 68 // of the specified animation.
65 void SetAnimationForView(View* view, ui::SlideAnimation* animation); 69 void SetAnimationForView(View* view, ui::SlideAnimation* animation);
66 70
67 // Returns the animation for the specified view. BoundsAnimator owns the 71 // Returns the animation for the specified view. BoundsAnimator owns the
68 // returned Animation. 72 // returned Animation.
69 const ui::SlideAnimation* GetAnimationForView(View* view); 73 const ui::SlideAnimation* GetAnimationForView(View* view);
70 74
71 // Stops animating the specified view. 75 // Stops animating the specified view.
72 void StopAnimatingView(View* view); 76 void StopAnimatingView(View* view);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 int animation_duration_ms_; 191 int animation_duration_ms_;
188 192
189 ui::Tween::Type tween_type_; 193 ui::Tween::Type tween_type_;
190 194
191 DISALLOW_COPY_AND_ASSIGN(BoundsAnimator); 195 DISALLOW_COPY_AND_ASSIGN(BoundsAnimator);
192 }; 196 };
193 197
194 } // namespace views 198 } // namespace views
195 199
196 #endif // UI_VIEWS_ANIMATION_BOUNDS_ANIMATOR_H_ 200 #endif // UI_VIEWS_ANIMATION_BOUNDS_ANIMATOR_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | ui/views/animation/bounds_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698