diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 21:57:39 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 21:57:39 +0000 |
commit | bfacb01f726b0f3ba4b1d9c3b9fdac0390de9b30 (patch) | |
tree | 314acc27f41eb889a8e6ecb30134a39dc8ae73e0 /views/animator.cc | |
parent | 5c9cc1ac8a29678fe75d4131a2679a9a306fbe7f (diff) | |
download | chromium_src-bfacb01f726b0f3ba4b1d9c3b9fdac0390de9b30.zip chromium_src-bfacb01f726b0f3ba4b1d9c3b9fdac0390de9b30.tar.gz chromium_src-bfacb01f726b0f3ba4b1d9c3b9fdac0390de9b30.tar.bz2 |
Fix the Views GTK build.
I mvoed the implementation of the previously-inline amimate function to the .cc file so we don't have to depend on STL includes in the header.
Review URL: http://codereview.chromium.org/155170
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/animator.cc')
-rw-r--r-- | views/animator.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/views/animator.cc b/views/animator.cc index 2b2a7db..177b0e1 100644 --- a/views/animator.cc +++ b/views/animator.cc @@ -84,6 +84,12 @@ void Animator::AnimateToBounds(const gfx::Rect& bounds, int direction) { animation_->Show(); } +void Animator::AnimateToBounds(int x, int y, int width, int height, + int direction) { + AnimateToBounds(gfx::Rect(x, y, std::max(0, width), std::max(0, height)), + direction); +} + //////////////////////////////////////////////////////////////////////////////// // Animator, AnimationDelegate: |