summaryrefslogtreecommitdiffstats
path: root/chrome/browser/jsmessage_box_handler.h
diff options
context:
space:
mode:
authorpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 04:08:54 +0000
committerpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 04:08:54 +0000
commitbeb440cea06ba40683a755d14dd5dbf9d11baadf (patch)
tree79b805ed76621b38c5682033a3fbab9dc0a6f8a8 /chrome/browser/jsmessage_box_handler.h
parentda3b971ec3cababd149b5cd6a7a9d021bfdd96b4 (diff)
downloadchromium_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/jsmessage_box_handler.h')
-rw-r--r--chrome/browser/jsmessage_box_handler.h3
1 files changed, 2 insertions, 1 deletions
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,