diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 21:15:48 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 21:15:48 +0000 |
commit | 32a66aed0e57642c8f0da0a4a34383bbc9250a32 (patch) | |
tree | 68d9c7919f9d148cfa8a2537f734143db7e6e94f /chrome/browser/browser_list.h | |
parent | f8bddcfb577500d541351efa8986cc89d8859d02 (diff) | |
download | chromium_src-32a66aed0e57642c8f0da0a4a34383bbc9250a32.zip chromium_src-32a66aed0e57642c8f0da0a4a34383bbc9250a32.tar.gz chromium_src-32a66aed0e57642c8f0da0a4a34383bbc9250a32.tar.bz2 |
window.cc should not include browser_list.h ... dependent (non-browser) windows are closed when they receive a notification rather than by being called directly from BrowserList. Also browser_list.cc should not include window.h, required for porting.
TEST=Open browser. Open options dialog box. Close browser. Options dialog should close too.
Review URL: http://codereview.chromium.org/18328
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.h')
-rw-r--r-- | chrome/browser/browser_list.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/chrome/browser/browser_list.h b/chrome/browser/browser_list.h index f9d76c3..e7ec88e 100644 --- a/chrome/browser/browser_list.h +++ b/chrome/browser/browser_list.h @@ -12,7 +12,6 @@ namespace views { class AppModalDialogDelegate; -class Window; }; class WebContents; @@ -41,13 +40,6 @@ class BrowserList { static void AddBrowser(Browser* browser); static void RemoveBrowser(Browser* browser); - // Adds and removes non-browser dependent windows. These are windows that are - // top level, but whose lifetime is associated wtih the existence of at least - // one active Browser. When the last Browser is destroyed, all open dependent - // windows are closed. - static void AddDependentWindow(views::Window* window); - static void RemoveDependentWindow(views::Window* window); - static void AddObserver(Observer* observer); static void RemoveObserver(Observer* observer); @@ -121,17 +113,12 @@ class BrowserList { static bool IsOffTheRecordSessionActive(); private: - // Closes all registered dependent windows. - static void CloseAllDependentWindows(); - // Helper method to remove a browser instance from a list of browsers static void RemoveBrowserFrom(Browser* browser, list_type* browser_list); static list_type browsers_; static std::vector<Observer*> observers_; static list_type last_active_browsers_; - typedef std::vector<views::Window*> DependentWindowList; - static DependentWindowList dependent_windows_; // Set to the currently showing modal dialog delegate if any, NULL otherwise. static views::AppModalDialogDelegate* app_modal_dialog_; |