diff options
author | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-02 18:24:53 +0000 |
---|---|---|
committer | nick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-02 18:24:53 +0000 |
commit | 9155324b8d7e4b465553e42366319a4e1587ac20 (patch) | |
tree | 6faecbce10a5163ab46782cf654e49c937ce6e1a /chrome/browser/browser.h | |
parent | c60bf3db722742386dcf4f8c9dc86e7a812688b7 (diff) | |
download | chromium_src-9155324b8d7e4b465553e42366319a4e1587ac20.zip chromium_src-9155324b8d7e4b465553e42366319a4e1587ac20.tar.gz chromium_src-9155324b8d7e4b465553e42366319a4e1587ac20.tar.bz2 |
Revert 54560 -
Change removing method, GetBrowser from TabContentsDelegate, as this was breaking an abstraction layer. This routine was originally added in CL 434046, which required the Browser* to construct extension popup views from within Chrome-Frame instances.
I changed all accesses to Browser instances from usage of the above method, to either iterating the BrowserList using the situation-specific profile as a search key, or modifying the appropriate delegate interfaces to provide the functionality that was previously used directly via the Browser.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/2941001
TBR=twiz@google.com
Review URL: http://codereview.chromium.org/3012042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54565 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r-- | chrome/browser/browser.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h index c990ee2..87456fb 100644 --- a/chrome/browser/browser.h +++ b/chrome/browser/browser.h @@ -227,29 +227,20 @@ class Browser : public TabStripModelDelegate, // app panel window, otherwise it will be opened as as either // Browser::Type::APP a.k.a. "thin frame" (if |extension| is NULL) or // Browser::Type::EXTENSION_APP (if |extension| is non-NULL). - // Returns the browser hosting for the TabContents via optional parameter, - // |browser|. static TabContents* OpenApplicationWindow( Profile* profile, Extension* extension, Extension::LaunchContainer container, - const GURL& url, - Browser** browser); + const GURL& url); // Open an application for |extension| in a new application window or panel. - // Returns the browser hosting the TabContents via optional parameter, - // |browser|. static TabContents* OpenApplicationWindow(Profile* profile, - GURL& url, - Browser** browser); + GURL& url); // Open an application for |extension| in a new application tab. Returns // NULL if there are no appropriate existing browser windows for |profile|. - // Returns the browser hosting the TabContents via optional parameter, - // |browser|. static TabContents* OpenApplicationTab(Profile* profile, - Extension* extension, - Browser** browser); + Extension* extension); // Opens a new window and opens the bookmark manager. static void OpenBookmarkManagerWindow(Profile* profile); @@ -664,7 +655,6 @@ class Browser : public TabStripModelDelegate, virtual void ToggleUseVerticalTabs(); virtual bool CanRestoreTab(); virtual void RestoreTab(); - virtual bool LargeIconsPermitted() const; // Overridden from TabStripModelObserver: virtual void TabInsertedAt(TabContents* contents, @@ -744,6 +734,7 @@ class Browser : public TabStripModelDelegate, virtual bool ShouldAddNavigationsToHistory() const; virtual void OnDidGetApplicationInfo(TabContents* tab_contents, int32 page_id); + virtual Browser* GetBrowser(); virtual void ContentTypeChanged(TabContents* source); // Overridden from SelectFileDialog::Listener: |