summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 19:41:32 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 19:41:32 +0000
commit1e9db21babb70b7d861ad65a09d96ced486ab513 (patch)
tree255acdfa1595a3f3e7c967c2112d3997560df455 /webkit
parent4d39d70ff4349094c98fadca93ea2e3157afd800 (diff)
downloadchromium_src-1e9db21babb70b7d861ad65a09d96ced486ab513.zip
chromium_src-1e9db21babb70b7d861ad65a09d96ced486ab513.tar.gz
chromium_src-1e9db21babb70b7d861ad65a09d96ced486ab513.tar.bz2
[Mac] Use GetCurrentButtonState() instead of Button() in WebPluginDelegateImpl::FireIdleEvent.
BUG=137676 TEST=none Review URL: https://chromiumcodereview.appspot.com/10810022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/plugins/npapi/webplugin_delegate_impl_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm b/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm
index c865b84..644b089 100644
--- a/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm
+++ b/webkit/plugins/npapi/webplugin_delegate_impl_mac.mm
@@ -1063,7 +1063,7 @@ void WebPluginDelegateImpl::FireIdleEvent() {
np_event.what = nullEvent;
np_event.when = TickCount();
np_event.modifiers = GetCurrentKeyModifiers();
- if (!Button())
+ if (!GetCurrentButtonState())
np_event.modifiers |= btnState;
HIPoint mouse_location;
HIGetMousePosition(kHICoordSpaceScreenPixel, NULL, &mouse_location);