diff options
author | pam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 04:08:54 +0000 |
---|---|---|
committer | pam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 04:08:54 +0000 |
commit | beb440cea06ba40683a755d14dd5dbf9d11baadf (patch) | |
tree | 79b805ed76621b38c5682033a3fbab9dc0a6f8a8 /chrome/browser/app_modal_dialog_gtk.cc | |
parent | da3b971ec3cababd149b5cd6a7a9d021bfdd96b4 (diff) | |
download | chromium_src-beb440cea06ba40683a755d14dd5dbf9d11baadf.zip chromium_src-beb440cea06ba40683a755d14dd5dbf9d11baadf.tar.gz chromium_src-beb440cea06ba40683a755d14dd5dbf9d11baadf.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/app_modal_dialog_gtk.cc')
-rw-r--r-- | chrome/browser/app_modal_dialog_gtk.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |