summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_list.h
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 22:11:43 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 22:11:43 +0000
commit3f34599d40afee4d071e33c12278931764dd7c56 (patch)
tree018bf8b9a56134fd022a12b964e297999fcb17f2 /chrome/browser/browser_list.h
parentc9d989b20d74fcd1de89d5aad90f5ad11d11801c (diff)
downloadchromium_src-3f34599d40afee4d071e33c12278931764dd7c56.zip
chromium_src-3f34599d40afee4d071e33c12278931764dd7c56.tar.gz
chromium_src-3f34599d40afee4d071e33c12278931764dd7c56.tar.bz2
Bookmark menu work. Notes:
- "add bookmark" menu item enable state (e.g. disabled if no windows) - bookmark menus built dynamically (like before) - bookmark menus rebuild when a bookmark is added/removed - bookmark menus take the current browser to where you want to go - works with multiple windows (main window goes to bookmark location) - works with no windows (bookmarks open a new window) Review URL: http://codereview.chromium.org/49005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.h')
-rw-r--r--chrome/browser/browser_list.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/browser_list.h b/chrome/browser/browser_list.h
index 44246ac..63ea28d 100644
--- a/chrome/browser/browser_list.h
+++ b/chrome/browser/browser_list.h
@@ -27,6 +27,9 @@ class BrowserList {
// Called immediately before a browser is removed from the list
virtual void OnBrowserRemoving(const Browser* browser) = 0;
+
+ // Called immediately after a browser is set active (SetLastActive)
+ virtual void OnBrowserSetLastActive(const Browser* browser) { };
};
// Adds and removes browsers from the global list. The browser object should