From e1d0303ebea1caddb079d71b63f39463d3944bad Mon Sep 17 00:00:00 2001 From: "pam@chromium.org" Date: Thu, 5 Nov 2009 18:22:35 +0000 Subject: Implement window.alert() and its cousins for extensions. 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/341089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31110 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/jsmessage_box_handler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser/jsmessage_box_handler.h') diff --git a/chrome/browser/jsmessage_box_handler.h b/chrome/browser/jsmessage_box_handler.h index 856c1c5..9ec6652 100644 --- a/chrome/browser/jsmessage_box_handler.h +++ b/chrome/browser/jsmessage_box_handler.h @@ -10,6 +10,7 @@ #include "ipc/ipc_message.h" class GURL; +class JavaScriptMessageBoxClient; class TabContents; // Creates and runs a Javascript Message Box dialog. @@ -18,7 +19,7 @@ class TabContents; // a user input prompt() box, the default text for the text field is in // |default_prompt_text|. The result of the operation is returned using // |reply_msg|. -void RunJavascriptMessageBox(TabContents* tab_contents, +void RunJavascriptMessageBox(JavaScriptMessageBoxClient* client, const GURL& frame_url, int dialog_flags, const std::wstring& message_text, -- cgit v1.1