diff options
Diffstat (limited to 'chrome/browser/tabs/tab_strip_model.h')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.h b/chrome/browser/tabs/tab_strip_model.h index 3386954..5530f8b 100644 --- a/chrome/browser/tabs/tab_strip_model.h +++ b/chrome/browser/tabs/tab_strip_model.h @@ -165,6 +165,12 @@ class TabStripModelDelegate { // TabContents. If it returns false, there are no unload listeners and the // TabStripModel can close the TabContents immediately. virtual bool RunUnloadListenerBeforeClosing(TabContents* contents) = 0; + + // Returns true if a tab can be restored. + virtual bool CanRestoreTab() = 0; + + // Restores the last closed tab if CanRestoreTab would return true. + virtual void RestoreTab() = 0; }; //////////////////////////////////////////////////////////////////////////////// @@ -403,6 +409,7 @@ class TabStripModel : public NotificationObserver { CommandCloseOtherTabs, CommandCloseTabsToRight, CommandCloseTabsOpenedBy, + CommandRestoreTab, CommandLast }; |