diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 18:31:05 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 18:31:05 +0000 |
commit | 62391376b5c86eea70af0d8e429ffc8a4b56e60d (patch) | |
tree | e5382e8663a693fc0f78040310e403f46ecaa7b2 /chrome/browser/gtk/slide_animator_gtk.h | |
parent | 2951965787cea2ad2f1c966791a68e2f10874071 (diff) | |
download | chromium_src-62391376b5c86eea70af0d8e429ffc8a4b56e60d.zip chromium_src-62391376b5c86eea70af0d8e429ffc8a4b56e60d.tar.gz chromium_src-62391376b5c86eea70af0d8e429ffc8a4b56e60d.tar.bz2 |
Don't resize the renderer while opening the bookmark bar or an infobar.
This is just a performance optimization. Previously this code was added for closing bookmark bars as a bit of visual polish.Doing the same thing for opening bookmark bars should reduce CPU usage but it won't look any different (for fast computers anyway).
BUG=17133
Review URL: http://codereview.chromium.org/183011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24911 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/slide_animator_gtk.h')
-rw-r--r-- | chrome/browser/gtk/slide_animator_gtk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/slide_animator_gtk.h b/chrome/browser/gtk/slide_animator_gtk.h index a4cf657..b2f6677 100644 --- a/chrome/browser/gtk/slide_animator_gtk.h +++ b/chrome/browser/gtk/slide_animator_gtk.h @@ -74,6 +74,10 @@ class SlideAnimatorGtk : public AnimationDelegate { // Returns whether the widget is currently showing the close animation. bool IsClosing(); + // Returns whether the widget is currently showing the open or close + // animation. + bool IsAnimating(); + // AnimationDelegate implementation. void AnimationProgressed(const Animation* animation); void AnimationEnded(const Animation* animation); |