From cb84d644eccdc493dbfd55809cffb4c4410be12d Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Thu, 10 Jun 2010 00:56:28 +0000 Subject: Make the reload button respond to middle-clicks like back/forward/home already do. This also makes GTK and Mac reset the location bar in the correct cases with various types of clicks on back/forward. BUG=none TEST=Middle-click reload. It should reload the page in a new background tab. Review URL: http://codereview.chromium.org/2779011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49350 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'chrome/browser/browser.h') diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h index d67cf4a..5a3a636 100644 --- a/chrome/browser/browser.h +++ b/chrome/browser/browser.h @@ -431,8 +431,8 @@ class Browser : public TabStripModelDelegate, // Navigation commands void GoBack(WindowOpenDisposition disposition); void GoForward(WindowOpenDisposition disposition); - void Reload(); - void ReloadIgnoringCache(); // AKA shift-reload. + void Reload(WindowOpenDisposition disposition); + void ReloadIgnoringCache(WindowOpenDisposition disposition); // Shift-reload. void Home(WindowOpenDisposition disposition); void OpenCurrentURL(); void Go(WindowOpenDisposition disposition); @@ -894,15 +894,14 @@ class Browser : public TabStripModelDelegate, static void RegisterAppPrefs(const std::wstring& app_name); // Shared code between Reload() and ReloadAll(). - void ReloadInternal(bool ignore_cache); + void ReloadInternal(WindowOpenDisposition disposition, bool ignore_cache); // Return true if the window dispositions means opening a new tab. bool ShouldOpenNewTabForWindowDisposition(WindowOpenDisposition disposition); - // Depending on the disposition, return the |NavigationController| for the - // current tab or clone the current tab and return its |NavigationController|. - NavigationController& GetOrCloneNavigationControllerForDisposition( - WindowOpenDisposition disp); + // Depending on the disposition, return the current tab or a clone of the + // current tab. + TabContents* GetOrCloneTabForDisposition(WindowOpenDisposition disposition); // Sets the insertion policy of the tabstrip based on whether vertical tabs // are enabled. -- cgit v1.1