diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-26 19:39:29 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-26 19:39:29 +0000 |
commit | 096d5cdd6c7b6930ca4a59bb965b5e4f6647f8e0 (patch) | |
tree | b59e549c2ae6733f3d675a8982d109088adcea51 /webkit/tools/test_shell | |
parent | 540f91b592b8a500442bccdebffbd34a4d8bc1bd (diff) | |
download | chromium_src-096d5cdd6c7b6930ca4a59bb965b5e4f6647f8e0.zip chromium_src-096d5cdd6c7b6930ca4a59bb965b5e4f6647f8e0.tar.gz chromium_src-096d5cdd6c7b6930ca4a59bb965b5e4f6647f8e0.tar.bz2 |
Report the plugin position to windowed plugins as (0,0)
. the NPAPI documentation says it should be reported relative to the parent HWND, which is the plugin's coordinates on the page. This assumption breaks in Chrome because we have an intermediate HWND. I've tested on a bunch of pages to see if this change causes regressions, if we find any in the future we can reconsider this.
BUG=6742
Review URL: http://codereview.chromium.org/42626
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell')
-rwxr-xr-x | webkit/tools/test_shell/test_webview_delegate_win.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate_win.cc b/webkit/tools/test_shell/test_webview_delegate_win.cc index ff4a7e2..28c5034 100755 --- a/webkit/tools/test_shell/test_webview_delegate_win.cc +++ b/webkit/tools/test_shell/test_webview_delegate_win.cc @@ -149,20 +149,7 @@ void TestWebViewDelegate::DidMove(WebWidget* webwidget, // Note: System will own the hrgn after we call SetWindowRgn, // so we don't need to call DeleteObject(hrgn) ::SetWindowRgn(move.window, hrgn, FALSE); - - unsigned long flags = 0; - if (move.visible) - flags |= SWP_SHOWWINDOW; - else - flags |= SWP_HIDEWINDOW; - - ::SetWindowPos(move.window, - NULL, - move.window_rect.x(), - move.window_rect.y(), - move.window_rect.width(), - move.window_rect.height(), - flags); + ::ShowWindow(move.window, move.visible ? SW_SHOW : SW_HIDE); } void TestWebViewDelegate::RunModal(WebWidget* webwidget) { |