diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-09 17:45:51 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-09 17:45:51 +0000 |
commit | 15a9b5d62a88c344af81ca28a393dc5c954162c6 (patch) | |
tree | 977ed083023a0dbeca6f19015f47cb4245d3f329 /chrome/browser/gtk/tabs/tab_strip_gtk.h | |
parent | 80bdee7b36af8131d5c10db1462ba925c4d212ee (diff) | |
download | chromium_src-15a9b5d62a88c344af81ca28a393dc5c954162c6.zip chromium_src-15a9b5d62a88c344af81ca28a393dc5c954162c6.tar.gz chromium_src-15a9b5d62a88c344af81ca28a393dc5c954162c6.tar.bz2 |
Add a remove tab animation for the Linux tabstrip.
Review URL: http://codereview.chromium.org/64004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/tabs/tab_strip_gtk.h')
-rw-r--r-- | chrome/browser/gtk/tabs/tab_strip_gtk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/gtk/tabs/tab_strip_gtk.h b/chrome/browser/gtk/tabs/tab_strip_gtk.h index eec7d46..9504963 100644 --- a/chrome/browser/gtk/tabs/tab_strip_gtk.h +++ b/chrome/browser/gtk/tabs/tab_strip_gtk.h @@ -74,6 +74,7 @@ class TabStripGtk : public TabStripModelObserver, private: friend class InsertTabAnimation; + friend class RemoveTabAnimation; friend class TabAnimation; struct TabData { @@ -148,6 +149,13 @@ class TabStripGtk : public TabStripModelObserver, // Starts various types of TabStrip animations. void StartInsertTabAnimation(int index); + void StartRemoveTabAnimation(int index, TabContents* contents); + + // Returns true if detach or select changes in the model should be reflected + // in the TabStrip. This returns false if we're closing all tabs in the + // TabStrip and so we should prevent updating. This is not const because we + // use this as a signal to cancel any active animations. + bool CanUpdateDisplay(); // Notifies the TabStrip that the specified TabAnimation has completed. // Optionally a full Layout will be performed, specified by |layout|. |