summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/web_contents.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-30 19:34:38 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-30 19:34:38 +0000
commit7eb2300f13b081bcd0adcfe28202e82d1310f70d (patch)
tree167a8c0e9d494b1862cf0b575a9f3688f37c4d5f /chrome/browser/tab_contents/web_contents.cc
parent9660ddd38561758694488c7110a7edbeacb1b305 (diff)
downloadchromium_src-7eb2300f13b081bcd0adcfe28202e82d1310f70d.zip
chromium_src-7eb2300f13b081bcd0adcfe28202e82d1310f70d.tar.gz
chromium_src-7eb2300f13b081bcd0adcfe28202e82d1310f70d.tar.bz2
Allow porting of the JS message boxes. I split out the implementation into
platform-specific files, and have WebContents just use the platform-independent header that declares the creation functions. Review URL: http://codereview.chromium.org/19719 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/web_contents.cc')
-rw-r--r--chrome/browser/tab_contents/web_contents.cc13
1 files changed, 4 insertions, 9 deletions
diff --git a/chrome/browser/tab_contents/web_contents.cc b/chrome/browser/tab_contents/web_contents.cc
index 4f4af00..b834972 100644
--- a/chrome/browser/tab_contents/web_contents.cc
+++ b/chrome/browser/tab_contents/web_contents.cc
@@ -1026,12 +1026,8 @@ void WebContents::RunJavaScriptMessage(
TimeDelta::FromMilliseconds(kJavascriptMessageExpectedDelay))
show_suppress_checkbox = true;
- JavascriptMessageBoxHandler::RunJavascriptMessageBox(this,
- flags,
- message,
- default_prompt,
- show_suppress_checkbox,
- reply_msg);
+ RunJavascriptMessageBox(this, flags, message, default_prompt,
+ show_suppress_checkbox, reply_msg);
} else {
// If we are suppressing messages, just reply as is if the user immediately
// pressed "Cancel".
@@ -1040,9 +1036,8 @@ void WebContents::RunJavaScriptMessage(
}
void WebContents::RunBeforeUnloadConfirm(const std::wstring& message,
- IPC::Message* reply_msg) {
- JavascriptBeforeUnloadHandler::RunBeforeUnloadDialog(this, message,
- reply_msg);
+ IPC::Message* reply_msg) {
+ RunBeforeUnloadDialog(this, message, reply_msg);
}
void WebContents::ShowModalHTMLDialog(const GURL& url, int width, int height,