summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 18:29:56 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 18:29:56 +0000
commite1f34499ce79eca58e76e9ea1bdeef2402eb4607 (patch)
tree50c640a884a0a8e14e2dfcd9d99e71f66df9100c /webkit
parenta023701ae0919ac47093e660bb400c6b87408460 (diff)
downloadchromium_src-e1f34499ce79eca58e76e9ea1bdeef2402eb4607.zip
chromium_src-e1f34499ce79eca58e76e9ea1bdeef2402eb4607.tar.gz
chromium_src-e1f34499ce79eca58e76e9ea1bdeef2402eb4607.tar.bz2
Reverting 11002.
Review URL: http://codereview.chromium.org/39203 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11008 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/chrome_client_impl.cc13
-rw-r--r--webkit/glue/webframe.h4
-rw-r--r--webkit/glue/webview_delegate.h11
3 files changed, 13 insertions, 15 deletions
diff --git a/webkit/glue/chrome_client_impl.cc b/webkit/glue/chrome_client_impl.cc
index 91af605..c9965dd 100644
--- a/webkit/glue/chrome_client_impl.cc
+++ b/webkit/glue/chrome_client_impl.cc
@@ -289,13 +289,12 @@ bool ChromeClientImpl::canRunBeforeUnloadConfirmPanel() {
return webview_->delegate() != NULL;
}
-bool ChromeClientImpl::runBeforeUnloadConfirmPanel(
- const WebCore::String& message,
- WebCore::Frame* frame) {
+bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const WebCore::String& message,
+ WebCore::Frame* frame) {
WebViewDelegate* d = webview_->delegate();
if (d) {
std::wstring wstr = webkit_glue::StringToStdWString(message);
- return d->RunBeforeUnloadConfirm(WebFrameImpl::FromFrame(frame), wstr);
+ return d->RunBeforeUnloadConfirm(webview_, wstr);
}
return false;
}
@@ -326,7 +325,7 @@ void ChromeClientImpl::runJavaScriptAlert(WebCore::Frame* frame,
#endif
std::wstring wstr = webkit_glue::StringToStdWString(message);
- d->RunJavaScriptAlert(WebFrameImpl::FromFrame(frame), wstr);
+ d->RunJavaScriptAlert(webview_, wstr);
}
}
@@ -336,7 +335,7 @@ bool ChromeClientImpl::runJavaScriptConfirm(WebCore::Frame* frame,
WebViewDelegate* d = webview_->delegate();
if (d) {
std::wstring wstr = webkit_glue::StringToStdWString(message);
- return d->RunJavaScriptConfirm(WebFrameImpl::FromFrame(frame), wstr);
+ return d->RunJavaScriptConfirm(webview_, wstr);
}
return false;
}
@@ -351,7 +350,7 @@ bool ChromeClientImpl::runJavaScriptPrompt(WebCore::Frame* frame,
std::wstring wstr_message = webkit_glue::StringToStdWString(message);
std::wstring wstr_default = webkit_glue::StringToStdWString(defaultValue);
std::wstring wstr_result;
- bool ok = d->RunJavaScriptPrompt(WebFrameImpl::FromFrame(frame),
+ bool ok = d->RunJavaScriptPrompt(webview_,
wstr_message,
wstr_default,
&wstr_result);
diff --git a/webkit/glue/webframe.h b/webkit/glue/webframe.h
index 4a0cf01..37eea8a 100644
--- a/webkit/glue/webframe.h
+++ b/webkit/glue/webframe.h
@@ -114,11 +114,11 @@ class WebFrame {
// lacks a history item. Otherwise, this will always be true.
virtual bool HasCurrentHistoryState() const = 0;
- // Returns the current URL of the frame, or an empty GURL if there is no
+ // Returns the current URL of the frame, or the empty string if there is no
// URL to retrieve (for example, the frame may never have had any content).
virtual GURL GetURL() const = 0;
- // Returns the URL to the favorite icon for the frame. An empty GURL is
+ // Returns the URL to the favorite icon for the frame. An empty string is
// returned if the frame has not finished loading, or the frame's URL
// protocol is not http or https.
virtual GURL GetFavIconURL() const = 0;
diff --git a/webkit/glue/webview_delegate.h b/webkit/glue/webview_delegate.h
index a1a90d2..59d4d95 100644
--- a/webkit/glue/webview_delegate.h
+++ b/webkit/glue/webview_delegate.h
@@ -498,10 +498,9 @@ class WebViewDelegate : virtual public WebWidgetDelegate {
}
// Displays a JavaScript alert panel associated with the given view. Clients
- // should visually indicate that this panel comes from JavaScript and some
- // information about the originating frame (at least the domain). The panel
+ // should visually indicate that this panel comes from JavaScript. The panel
// should have a single OK button.
- virtual void RunJavaScriptAlert(WebFrame* webframe,
+ virtual void RunJavaScriptAlert(WebView* webview,
const std::wstring& message) {
}
@@ -509,7 +508,7 @@ class WebViewDelegate : virtual public WebWidgetDelegate {
// Clients should visually indicate that this panel comes
// from JavaScript. The panel should have two buttons, e.g. "OK" and
// "Cancel". Returns true if the user hit OK, or false if the user hit Cancel.
- virtual bool RunJavaScriptConfirm(WebFrame* webframe,
+ virtual bool RunJavaScriptConfirm(WebView* webview,
const std::wstring& message) {
return false;
}
@@ -521,7 +520,7 @@ class WebViewDelegate : virtual public WebWidgetDelegate {
// panel when it is shown. If the user hit OK, returns true and fills result
// with the text in the box. The value of result is undefined if the user
// hit Cancel.
- virtual bool RunJavaScriptPrompt(WebFrame* webframe,
+ virtual bool RunJavaScriptPrompt(WebView* webview,
const std::wstring& message,
const std::wstring& default_value,
std::wstring* result) {
@@ -537,7 +536,7 @@ class WebViewDelegate : virtual public WebWidgetDelegate {
// that the navigation should continue, and Cancel means that the navigation
// should be cancelled, leaving the user on the current page. Returns true
// if the user hit OK, or false if the user hit Cancel.
- virtual bool RunBeforeUnloadConfirm(WebFrame* webframe,
+ virtual bool RunBeforeUnloadConfirm(WebView* webview,
const std::wstring& message) {
return true; // OK, continue to navigate away
}