diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-08 23:20:20 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-08 23:20:20 +0000 |
commit | a206b446481a9d522958a98e03912aba8c02bb4b (patch) | |
tree | ef94c7d31020aaa871117fa1d23b352db34f0940 /chrome/browser/browser.h | |
parent | 96a41a0ec6889b5923a92454eafaf39fd63277cf (diff) | |
download | chromium_src-a206b446481a9d522958a98e03912aba8c02bb4b.zip chromium_src-a206b446481a9d522958a98e03912aba8c02bb4b.tar.gz chromium_src-a206b446481a9d522958a98e03912aba8c02bb4b.tar.bz2 |
* Add ctrl-shift-d to bookmark all tabs.
* Enable or disable bookmark commands based on whether we're actually going to be able to bookmark anything.
* Rename IDC_STAR to IDC_BOOKMARK_PAGE, which is more obvious.
BUG=2935
TEST=Hit ctrl-shift-d, make sure it bookmarks all tabs
Review URL: http://codereview.chromium.org/266029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28480 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r-- | chrome/browser/browser.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h index d176b1d..715559a 100644 --- a/chrome/browser/browser.h +++ b/chrome/browser/browser.h @@ -474,6 +474,7 @@ class Browser : public TabStripModelDelegate, virtual void CreateHistoricalTab(TabContents* contents); virtual bool RunUnloadListenerBeforeClosing(TabContents* contents); virtual bool CanCloseContentsAt(int index); + virtual bool CanBookmarkAllTabs() const; virtual void BookmarkAllTabs(); // Overridden from TabStripModelObserver: @@ -563,6 +564,9 @@ class Browser : public TabStripModelDelegate, // loading. |force| is true if the button should change its icon immediately. void UpdateStopGoState(bool is_loading, bool force); + // Returns true if the specified tab contents can be bookmarked. + bool CanBookmarkTabContents(TabContents* tab_contents) const; + // UI update coalescing and handling //////////////////////////////////////// // Asks the toolbar (and as such the location bar) to update its state to |