summaryrefslogtreecommitdiffstats
path: root/chrome/browser/navigation_controller.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-17 21:29:15 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-17 21:29:15 +0000
commit325ff88aecfd0b14ee2b69c6d5eb0e0ed7764cf9 (patch)
tree35cbc99b42ae6e4cca2202f132ffc12188c3b18c /chrome/browser/navigation_controller.h
parent44d11123d43b38956b7c2224e0d6aa2d48acbb3c (diff)
downloadchromium_src-325ff88aecfd0b14ee2b69c6d5eb0e0ed7764cf9.zip
chromium_src-325ff88aecfd0b14ee2b69c6d5eb0e0ed7764cf9.tar.gz
chromium_src-325ff88aecfd0b14ee2b69c6d5eb0e0ed7764cf9.tar.bz2
Rollback! Now with 25% more HWND.
:-/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/navigation_controller.h')
-rw-r--r--chrome/browser/navigation_controller.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/chrome/browser/navigation_controller.h b/chrome/browser/navigation_controller.h
index ba805bd..5b5408f 100644
--- a/chrome/browser/navigation_controller.h
+++ b/chrome/browser/navigation_controller.h
@@ -128,7 +128,8 @@ class NavigationController {
NavigationController(
Profile* profile,
const std::vector<TabNavigation>& navigations,
- int selected_navigation);
+ int selected_navigation,
+ HWND parent);
~NavigationController();
// Begin the destruction sequence for this NavigationController and all its
@@ -140,8 +141,8 @@ class NavigationController {
void Destroy();
// Clone the receiving navigation controller. Only the active tab contents is
- // duplicated.
- NavigationController* Clone();
+ // duplicated. It is created as a child of the provided HWND.
+ NavigationController* Clone(HWND hwnd);
// Returns the profile for this controller. It can never be NULL.
Profile* profile() const {
@@ -433,7 +434,8 @@ class NavigationController {
// Returns the TabContents for the |entry|'s type. If the TabContents
// doesn't yet exist, it is created. If a new TabContents is created, its
// parent is |parent|. Becomes part of |entry|'s SiteInstance.
- TabContents* GetTabContentsCreateIfNecessary(const NavigationEntry& entry);
+ TabContents* GetTabContentsCreateIfNecessary(HWND parent,
+ const NavigationEntry& entry);
// Register the provided tab contents. This tab contents will be owned
// and deleted by this navigation controller
@@ -461,7 +463,7 @@ class NavigationController {
// Invoked after session/tab restore or cloning a tab. Resets the transition
// type of the entries, updates the max page id and creates the active
// contents.
- void FinishRestore(int selected_index);
+ void FinishRestore(HWND parent_hwnd, int selected_index);
// Inserts an entry after the current position, removing all entries after it.
// The new entry will become the active one.