From beb440cea06ba40683a755d14dd5dbf9d11baadf Mon Sep 17 00:00:00 2001 From: "pam@chromium.org" Date: Fri, 6 Nov 2009 04:08:54 +0000 Subject: Implement window.alert() and its cousins for extensions. Second try, now with fixed observer. BUG=12126 TEST=put a window.prompt() in a background page, a browser action, and a page action. Make sure it gets the result back correctly. Also make sure it still works when called from a web page. Review URL: http://codereview.chromium.org/373006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31204 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/app_modal_dialog_gtk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/app_modal_dialog_gtk.cc') diff --git a/chrome/browser/app_modal_dialog_gtk.cc b/chrome/browser/app_modal_dialog_gtk.cc index 0191e84..d3bbd48 100644 --- a/chrome/browser/app_modal_dialog_gtk.cc +++ b/chrome/browser/app_modal_dialog_gtk.cc @@ -122,7 +122,7 @@ void AppModalDialog::CreateAndShowDialog() { } g_object_unref(window_group); - GtkWindow* window = tab_contents_->view()->GetTopLevelNativeWindow(); + gfx::NativeWindow window = client_->GetMessageBoxRootWindow(); dialog_ = gtk_message_dialog_new(window, GTK_DIALOG_MODAL, message_type, buttons, "%s", WideToUTF8(message_text_).c_str()); gtk_window_set_title(GTK_WINDOW(dialog_), WideToUTF8(title_).c_str()); -- cgit v1.1