diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 22:41:42 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-16 22:41:42 +0000 |
commit | b6ad1cab92ed9e9c1734d1801482cfa8ffd3b4b1 (patch) | |
tree | 0d1a8598536ed29830e4e8a4cdbcd90b5f0dbd87 /chrome/browser/browser_list.h | |
parent | 16f3bd95e3f2bd39f6d64f91326bb3cdf894cedc (diff) | |
download | chromium_src-b6ad1cab92ed9e9c1734d1801482cfa8ffd3b4b1.zip chromium_src-b6ad1cab92ed9e9c1734d1801482cfa8ffd3b4b1.tar.gz chromium_src-b6ad1cab92ed9e9c1734d1801482cfa8ffd3b4b1.tar.bz2 |
Pull app modal dialog handling out of the BrowserList to remove the ChromeViews dependency. (Required for porting).
TEST=Open two browser windows. In one, enter "javascript:alert('Foo');" into the address bar and hit enter. Click on the other window. The modal dialog should be focused and the window it was opened over should flash in the taskbar,
Review URL: http://codereview.chromium.org/18179
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.h')
-rw-r--r-- | chrome/browser/browser_list.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/chrome/browser/browser_list.h b/chrome/browser/browser_list.h index e7ec88e..72262a9 100644 --- a/chrome/browser/browser_list.h +++ b/chrome/browser/browser_list.h @@ -10,11 +10,6 @@ #include "chrome/browser/browser.h" -namespace views { -class AppModalDialogDelegate; -}; -class WebContents; - // Stores a list of all Browser objects. class BrowserList { public: @@ -69,14 +64,6 @@ class BrowserList { // Returns true if there is at least one Browser with the specified profile. static bool HasBrowserWithProfile(Profile* profile); - // Sets the passed dialog delegate as the currently showing dialog. - static void SetShowingAppModalDialog(views::AppModalDialogDelegate* dialog); - static views::AppModalDialogDelegate* GetShowingAppModalDialog(); - - // True if the last active browser is application modal, false otherwise. See - // SetIsShowingAppModalDialog for more details. - static bool IsShowingAppModalDialog(); - static const_iterator begin() { return browsers_.begin(); } @@ -119,11 +106,9 @@ class BrowserList { static list_type browsers_; static std::vector<Observer*> observers_; static list_type last_active_browsers_; - - // Set to the currently showing modal dialog delegate if any, NULL otherwise. - static views::AppModalDialogDelegate* app_modal_dialog_; }; +class WebContents; // Iterates through all web view hosts in all browser windows. Because the // renderers act asynchronously, getting a host through this interface does |