Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: chrome/browser/browser.h

Issue 18093: Changes to insure that when in app-mode, links open in the default browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/browser.h
===================================================================
--- chrome/browser/browser.h (revision 8449)
+++ chrome/browser/browser.h (working copy)
@@ -112,6 +112,10 @@
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.
@@ -387,11 +391,12 @@
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);
@@ -498,7 +503,7 @@
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);
@@ -643,6 +648,9 @@
// 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);
};

Powered by Google App Engine
This is Rietveld 408576698