Fix SetShape (SetAlphaShape) to allow Null regions (+ tests).
commit9faa4c61fc4e52ff254eaa9fdff31f953732be67
authorgarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 12 Aug 2014 03:11:17 +0000 (12 03:11 +0000)
committergarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 12 Aug 2014 03:13:11 +0000 (12 03:13 +0000)
tree481835d4c5fe128213cc71e9dd43fdb467afeb7f
parent7a3b60af073aec7b2558adf8ab092eb1a084d0d5
Fix SetShape (SetAlphaShape) to allow Null regions (+ tests).

SetAlphaShape uses a filter to enforce min/max transparency on the window shape specified by the user. This transparency clamping is required by security to ship the SetShape feature.

We added the call to SetAlphaShape earlier, but we needed to temporarily remove it because of bugs with HiDPI devices and NULL shapes.

The issue with HiDPI devices has been fixed in crrev.com/394193003.
This cl fixes Null shape and re-adds the call to SetAlphaShape so that we can enable this feature on Stable.

BUG=324071

Review URL: https://codereview.chromium.org/456943004

Cr-Commit-Position: refs/heads/master@{#288889}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288889 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/extensions/api/app_window/app_window_apitest.cc
chrome/test/data/extensions/platform_apps/windows_api_shape/background.js [new file with mode: 0644]
chrome/test/data/extensions/platform_apps/windows_api_shape/index.html [new file with mode: 0644]
chrome/test/data/extensions/platform_apps/windows_api_shape/manifest.json [new file with mode: 0644]
ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc
ui/views/widget/native_widget_aura.cc