summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authormdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 01:41:11 +0000
committermdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-04 01:41:11 +0000
commitda27fa77f37f56aa941f0cfd21aa09f2846d5670 (patch)
tree9bd2e4610c54d827ac144720ee3236e2db133975 /chrome
parentb7e4c20693bf0fd0a55d471695033c940d5ae711 (diff)
downloadchromium_src-da27fa77f37f56aa941f0cfd21aa09f2846d5670.zip
chromium_src-da27fa77f37f56aa941f0cfd21aa09f2846d5670.tar.gz
chromium_src-da27fa77f37f56aa941f0cfd21aa09f2846d5670.tar.bz2
Linux: make external protocol dialog non-modal.
BUG=none TEST=none Review URL: http://codereview.chromium.org/198017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/gtk/external_protocol_dialog_gtk.cc13
-rw-r--r--chrome/browser/gtk/external_protocol_dialog_gtk.h2
2 files changed, 5 insertions, 10 deletions
diff --git a/chrome/browser/gtk/external_protocol_dialog_gtk.cc b/chrome/browser/gtk/external_protocol_dialog_gtk.cc
index 538579e..7958e1b 100644
--- a/chrome/browser/gtk/external_protocol_dialog_gtk.cc
+++ b/chrome/browser/gtk/external_protocol_dialog_gtk.cc
@@ -28,25 +28,20 @@ const int kMessageWidth = 400;
// static
void ExternalProtocolHandler::RunExternalProtocolDialog(
const GURL& url, int render_process_host_id, int routing_id) {
- TabContents* tab_contents = tab_util::GetTabContentsByID(
- render_process_host_id, routing_id);
- new ExternalProtocolDialogGtk(url, tab_contents);
+ new ExternalProtocolDialogGtk(url);
}
///////////////////////////////////////////////////////////////////////////////
// ExternalProtocolDialogGtk
-ExternalProtocolDialogGtk::ExternalProtocolDialogGtk(
- const GURL& url, TabContents* tab_contents)
+ExternalProtocolDialogGtk::ExternalProtocolDialogGtk(const GURL& url)
: url_(url),
creation_time_(base::Time::Now()) {
- GtkWindow* parent = tab_contents ?
- tab_contents->view()->GetTopLevelNativeWindow() : NULL;
dialog_ = gtk_dialog_new_with_buttons(
l10n_util::GetStringUTF8(IDS_EXTERNAL_PROTOCOL_TITLE).c_str(),
- parent,
- (GtkDialogFlags) (GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR),
+ NULL,
+ GTK_DIALOG_NO_SEPARATOR,
GTK_STOCK_CANCEL,
GTK_RESPONSE_REJECT,
NULL);
diff --git a/chrome/browser/gtk/external_protocol_dialog_gtk.h b/chrome/browser/gtk/external_protocol_dialog_gtk.h
index 17d9e61..c3801d2 100644
--- a/chrome/browser/gtk/external_protocol_dialog_gtk.h
+++ b/chrome/browser/gtk/external_protocol_dialog_gtk.h
@@ -14,7 +14,7 @@ typedef struct _GtkWidget GtkWidget;
class ExternalProtocolDialogGtk {
public:
- ExternalProtocolDialogGtk(const GURL& url, TabContents* tab_contents);
+ ExternalProtocolDialogGtk(const GURL& url);
private:
static void OnDialogResponse(GtkWidget* widget,