summaryrefslogtreecommitdiffstats
path: root/webkit/glue/chrome_client_impl.cc
diff options
context:
space:
mode:
authorfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-07 00:29:17 +0000
committerfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-07 00:29:17 +0000
commit799d9dea1be5fa710f5c0f7d9a4c00af830091b3 (patch)
tree7d7d09dbe72aed83cbf188aa51ac198a820165e7 /webkit/glue/chrome_client_impl.cc
parentd81e71ece74aa68db876e639c716e892637a116b (diff)
downloadchromium_src-799d9dea1be5fa710f5c0f7d9a4c00af830091b3.zip
chromium_src-799d9dea1be5fa710f5c0f7d9a4c00af830091b3.tar.gz
chromium_src-799d9dea1be5fa710f5c0f7d9a4c00af830091b3.tar.bz2
Implementing that callback required to pass
LayoutTest/fast/dom/assign-to-window-status.html which is testing whether we can assign values to window.status. BUG=1143492 Review URL: http://codereview.chromium.org/21147 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9366 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/chrome_client_impl.cc')
-rw-r--r--webkit/glue/chrome_client_impl.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/webkit/glue/chrome_client_impl.cc b/webkit/glue/chrome_client_impl.cc
index 6a04764..18269e1 100644
--- a/webkit/glue/chrome_client_impl.cc
+++ b/webkit/glue/chrome_client_impl.cc
@@ -60,7 +60,7 @@ class WebFileChooserCallbackImpl : public WebFileChooserCallback {
private:
RefPtr<WebCore::FileChooser> file_chooser_;
- DISALLOW_EVIL_CONSTRUCTORS(WebFileChooserCallbackImpl);
+ DISALLOW_COPY_AND_ASSIGN(WebFileChooserCallbackImpl);
};
ChromeClientImpl::ChromeClientImpl(WebViewImpl* webview)
@@ -295,7 +295,7 @@ bool ChromeClientImpl::runBeforeUnloadConfirmPanel(const WebCore::String& messag
void ChromeClientImpl::closeWindowSoon() {
// Make sure this Page can no longer be found by JS.
webview_->page()->setGroupName(WebCore::String());
-
+
// Make sure that all loading is stopped. Ensures that JS stops executing!
webview_->StopLoading();
@@ -348,8 +348,12 @@ bool ChromeClientImpl::runJavaScriptPrompt(WebCore::Frame* frame,
return false;
}
-void ChromeClientImpl::setStatusbarText(const WebCore::String&) {
- // TODO(mbelshe): implement me
+void ChromeClientImpl::setStatusbarText(const WebCore::String& message) {
+ WebViewDelegate* d = webview_->delegate();
+ if (d) {
+ std::wstring wstr = webkit_glue::StringToStdWString(message);
+ d->SetStatusbarText(webview_, wstr);
+ }
}
bool ChromeClientImpl::shouldInterruptJavaScript() {
@@ -370,7 +374,7 @@ WebCore::IntRect ChromeClientImpl::windowResizerRect() const {
if (webview_->delegate()) {
gfx::Rect resizer_rect;
webview_->delegate()->GetRootWindowResizerRect(webview_, &resizer_rect);
- rv = WebCore::IntRect(resizer_rect.x(),
+ rv = WebCore::IntRect(resizer_rect.x(),
resizer_rect.y(),
resizer_rect.width(),
resizer_rect.height());