diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 04:02:04 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-04 04:02:04 +0000 |
commit | 36f779bd319d5c0449f2749179f82fd4a2b23dd7 (patch) | |
tree | 69894ebb7cc5f302fa49589a2a95a212217619ac /webkit/plugins/npapi | |
parent | 69affca0b360b519a956e12d9f92bb7311c54859 (diff) | |
download | chromium_src-36f779bd319d5c0449f2749179f82fd4a2b23dd7.zip chromium_src-36f779bd319d5c0449f2749179f82fd4a2b23dd7.tar.gz chromium_src-36f779bd319d5c0449f2749179f82fd4a2b23dd7.tar.bz2 |
Addressing review comments from brettw.
BUG=41157
TEST=none
Review URL: http://codereview.chromium.org/6603033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/npapi')
-rw-r--r-- | webkit/plugins/npapi/webplugin_delegate_impl_win.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc index 1e82cad..5bfc994 100644 --- a/webkit/plugins/npapi/webplugin_delegate_impl_win.cc +++ b/webkit/plugins/npapi/webplugin_delegate_impl_win.cc @@ -1404,19 +1404,15 @@ void WebPluginDelegateImpl::HandleCaptureForMessage(HWND window, switch (message) { case WM_LBUTTONDOWN: case WM_MBUTTONDOWN: - case WM_RBUTTONDOWN: { + case WM_RBUTTONDOWN: ::SetCapture(window); // As per documentation the WM_PARENTNOTIFY message is sent to the parent // window chain if mouse input is received by the child window. However // the parent receives the WM_PARENTNOTIFY message only if we doubleclick // on the window. We send the WM_PARENTNOTIFY message for mouse input // messages to the parent to indicate that user action is expected. - HWND parent = GetParent(window); - if (IsWindow(parent)) { - ::SendMessage(parent, WM_PARENTNOTIFY, message, 0); - } + ::SendMessage(::GetParent(window), WM_PARENTNOTIFY, message, 0); break; - } case WM_LBUTTONUP: case WM_MBUTTONUP: |