summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.h
diff options
context:
space:
mode:
authorbrg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 00:02:44 +0000
committerbrg@chromium.com <brg@chromium.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-23 00:02:44 +0000
commit1ebed56434c220f82cf220bbb72a136fea962c87 (patch)
tree7058028de7d017612d46ee49ba27b497c89cea7a /chrome/browser/browser.h
parent3c4d38386f27b5fc4a7a8db717ea114725c34b4a (diff)
downloadchromium_src-1ebed56434c220f82cf220bbb72a136fea962c87.zip
chromium_src-1ebed56434c220f82cf220bbb72a136fea962c87.tar.gz
chromium_src-1ebed56434c220f82cf220bbb72a136fea962c87.tar.bz2
Changes to insure that when in app-mode, links open in the default browser. This change should have no affect on Chrome when not in app-mode.Tested against Gmail. UITests added as app_mode_navigation_uitest.
Review URL: http://codereview.chromium.org/18093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8523 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r--chrome/browser/browser.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h
index 349b504..488d364 100644
--- a/chrome/browser/browser.h
+++ b/chrome/browser/browser.h
@@ -112,6 +112,10 @@ class Browser : public TabStripModelDelegate,
g_browser_process->user_data_dir_profiles() = profiles;
}
+ void set_open_new_windows_in_default_browser(bool value) {
+ open_new_windows_in_default_browser_ = value;
+ }
+
// Browser Creation Helpers /////////////////////////////////////////////////
// Opens a new window with the default blank tab.
@@ -393,11 +397,12 @@ class Browser : public TabStripModelDelegate,
virtual void ContentsZoomChange(bool zoom_in);
virtual bool IsApplication() const;
+ virtual bool ShouldOpenURLInDefaultBrowser() const;
virtual void ConvertContentsToApplication(TabContents* source);
virtual void ContentsStateChanged(TabContents* source);
virtual bool ShouldDisplayURLField();
virtual void BeforeUnloadFired(TabContents* source,
- bool proceed,
+ bool proceed,
bool* proceed_to_fire_unload);
virtual void ShowHtmlDialog(HtmlDialogContentsDelegate* delegate,
void* parent_window);
@@ -504,7 +509,7 @@ class Browser : public TabStripModelDelegate,
bool RemoveFromSet(UnloadListenerSet* set, TabContents* tab);
// Cleans up state appropriately when we are trying to close the browser and
- // the tab has finished firing it's unload handler. We also use this in the
+ // the tab has finished firing it's unload handler. We also use this in the
// cases where a tab crashes or hangs even if the beforeunload/unload haven't
// successfully fired.
void ClearUnloadState(TabContents* tab);
@@ -651,6 +656,9 @@ class Browser : public TabStripModelDelegate,
// Keep track of the encoding auto detect pref.
BooleanPrefMember encoding_auto_detect_;
+ // Allows a client of a TabDelegate to decide how to launch a url.
+ bool open_new_windows_in_default_browser_;
+
DISALLOW_COPY_AND_ASSIGN(Browser);
};