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-05 18:22:35 +0000
committerpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 18:22:35 +0000
commite1d0303ebea1caddb079d71b63f39463d3944bad (patch)
tree9c9c1abb6d608889aa20d14c34036eb99ffe2c58 /chrome/browser/jsmessage_box_handler.h
parentd6b401bed87fa50d1fc0993c04ee7ee992dd6627 (diff)
downloadchromium_src-e1d0303ebea1caddb079d71b63f39463d3944bad.zip
chromium_src-e1d0303ebea1caddb079d71b63f39463d3944bad.tar.gz
chromium_src-e1d0303ebea1caddb079d71b63f39463d3944bad.tar.bz2
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
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,