diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-03 21:46:53 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-03 21:46:53 +0000 |
commit | ceeed3b369131364f9e602028c82b836669eb445 (patch) | |
tree | af30fce1eca81601f913e49837683fc00090e1e3 /chrome/browser/extensions/default_apps.cc | |
parent | a12eb40f09275c44f2855c9bbc1f0fd0b88db40f (diff) | |
download | chromium_src-ceeed3b369131364f9e602028c82b836669eb445.zip chromium_src-ceeed3b369131364f9e602028c82b836669eb445.tar.gz chromium_src-ceeed3b369131364f9e602028c82b836669eb445.tar.bz2 |
Ensure that reposting mouse events on Windows posts the message natively via the PostMessage API.
The current code posts the events via the Aura code path which does not work on Windows with the glass theme for the system
menu buttons (Min/Max/Restore). These are part of the non client area of the Window and rely on the WM_NCLBUTTONDOWN message
to be defproced which eventually posts a WM_SYSCOMMAND message for the corresponding operation.
Fix is to check if the NativeWindow doing a repost is in the Metro environment for Windows. If yes we continue the current logic
of reposting the events via Aura. If not we post the message natively. The RepostLocatedEvent function internally calls
the RepostLocatedEventWin function to post the function natively. The functionality to check if a window is in metro
has been added to the ViewsDelegate interface and is implemented by Chrome.
Fixes bug https://code.google.com/p/chromium/issues/detail?id=323105
BUG=323105
R=sky@chromium.org
Review URL: https://codereview.chromium.org/100303005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238462 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/default_apps.cc')
0 files changed, 0 insertions, 0 deletions