summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.h
diff options
context:
space:
mode:
authorstevenjb@google.com <stevenjb@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 16:49:16 +0000
committerstevenjb@google.com <stevenjb@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 16:49:16 +0000
commit1b74d2120db778a1809ddb5ca395e149d75e68f2 (patch)
tree35f7c3b6b8010316d6211e38793d5b4016315642 /chrome/browser/browser.h
parent7c44ec5eac469803e7531e7e604673e536d50753 (diff)
downloadchromium_src-1b74d2120db778a1809ddb5ca395e149d75e68f2.zip
chromium_src-1b74d2120db778a1809ddb5ca395e149d75e68f2.tar.gz
chromium_src-1b74d2120db778a1809ddb5ca395e149d75e68f2.tar.bz2
chromium-os:7243: Fix so that extensions create popup windows of TYPE_APP_POPUP.
Refactor Browser::BuildPopupWindow as Browser::CreatePopupWindow and call it from ExtensionHost::ShowCreatedWindow. BUG=http://code.google.com/p/chromium-os/issues/detail?id=7243 TEST=Test popup windows in general. See issue for specific test case. Review URL: http://codereview.chromium.org/3532011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61657 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r--chrome/browser/browser.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h
index b1cdce2..6b894b2 100644
--- a/chrome/browser/browser.h
+++ b/chrome/browser/browser.h
@@ -131,8 +131,11 @@ class Browser : public TabHandlerDelegate,
// window is created by this function call.
static Browser* Create(Profile* profile);
- // Like Create, but creates a tabstrip-less popup window.
- static Browser* CreateForPopup(Profile* profile);
+ // Like Create, but creates a browser of the specified (popup) type, with the
+ // specified contents, in a popup window of the specified size/position.
+ static Browser* CreateForPopup(Type type, Profile* profile,
+ TabContents* new_contents,
+ const gfx::Rect& initial_bounds);
// Like Create, but creates a browser of the specified type.
static Browser* CreateForType(Type type, Profile* profile);
@@ -603,14 +606,6 @@ class Browser : public TabHandlerDelegate,
// Creates a new Browser if none are available.
static Browser* GetOrCreateTabbedBrowser(Profile* profile);
- // Helper function to create a new popup window.
- static void BuildPopupWindowHelper(TabContents* source,
- TabContents* new_contents,
- const gfx::Rect& initial_pos,
- Browser::Type browser_type,
- Profile* profile,
- bool honor_saved_maximized_state);
-
// Calls ExecuteCommandWithDisposition with the given disposition.
void ExecuteCommandWithDisposition(int id, WindowOpenDisposition);
@@ -918,13 +913,6 @@ class Browser : public TabHandlerDelegate,
int index,
int add_types);
- // Creates a new popup window with its own Browser object with the
- // incoming sizing information. |initial_pos|'s origin() is the
- // window origin, and its size() is the size of the content area.
- void BuildPopupWindow(TabContents* source,
- TabContents* new_contents,
- const gfx::Rect& initial_pos);
-
// Returns what the user's home page is, or the new tab page if the home page
// has not been set.
GURL GetHomePage() const;