summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_webview_delegate.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-21 21:13:01 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-21 21:13:01 +0000
commit63bf66fc9f88f5ec92f4e9a2e2c65e747bab50c4 (patch)
tree6d9886906e7beb39c0265a53842aa79f6d5357c2 /webkit/tools/test_shell/test_webview_delegate.cc
parentb6857ad5bc27cf95b765b1c019a35c7830cfd980 (diff)
downloadchromium_src-63bf66fc9f88f5ec92f4e9a2e2c65e747bab50c4.zip
chromium_src-63bf66fc9f88f5ec92f4e9a2e2c65e747bab50c4.tar.gz
chromium_src-63bf66fc9f88f5ec92f4e9a2e2c65e747bab50c4.tar.bz2
Fix ChromeClientImpl::windowRect() to return the current
window's rect. Previously, it was combining the window origin with the size of the renderer; not the size of the window. BUG=1186573 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1184 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_webview_delegate.cc')
-rw-r--r--webkit/tools/test_shell/test_webview_delegate.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc
index e111877..de84d38 100644
--- a/webkit/tools/test_shell/test_webview_delegate.cc
+++ b/webkit/tools/test_shell/test_webview_delegate.cc
@@ -747,12 +747,12 @@ void TestWebViewDelegate::SetCursor(WebWidget* webwidget,
}
}
-void TestWebViewDelegate::GetWindowLocation(WebWidget* webwidget,
- gfx::Point* origin) {
+void TestWebViewDelegate::GetWindowRect(WebWidget* webwidget,
+ gfx::Rect* out_rect) {
if (WebWidgetHost* host = GetHostForWidget(webwidget)) {
RECT rect;
- GetWindowRect(host->window_handle(), &rect);
- origin->SetPoint(rect.left, rect.top);
+ ::GetWindowRect(host->window_handle(), &rect);
+ *out_rect = gfx::Rect(rect);
}
}