Add app.window.alphaEnabled() and onAlphaEnabledChanged.
commit7ec744bb44a15ceb8fe1a455568f4b7e9c635ca0
authorjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 18 Jul 2014 07:21:22 +0000 (18 07:21 +0000)
committerjackhou@chromium.org <jackhou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 18 Jul 2014 07:21:22 +0000 (18 07:21 +0000)
tree03c3aee3e3900e7701706c00233c150be93a1a74
parentfbad5bb4be0194d3288efc3ab16cb4480f03ab33
Add app.window.alphaEnabled() and onAlphaEnabledChanged.

This allows an app to determine whether a window created with
"transparent_background" will work as expected.

This also allows the app to detect when "transparent_background" might
stop working, e.g. when Windows changes from Aero to Classic.

This also fixes the bug where "transparent_background" windows
created in Classic render as black rectangles.

BUG=260810

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284026 0039d316-1c4b-4281-b951-d872f2087c98
26 files changed:
apps/app_window.cc
apps/app_window.h
apps/ui/native_app_window.h
apps/ui/views/native_app_window_views.cc
apps/ui/views/native_app_window_views.h
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h
chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc
chrome/common/extensions/api/app_current_window_internal.idl
chrome/common/extensions/api/app_window.idl
chrome/renderer/resources/extensions/app_window_custom_bindings.js
ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
ui/views/widget/desktop_aura/desktop_native_widget_aura.h
ui/views/widget/desktop_aura/desktop_window_tree_host.h
ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
ui/views/widget/native_widget_aura.cc
ui/views/widget/native_widget_aura.h
ui/views/widget/native_widget_mac.h
ui/views/widget/native_widget_mac.mm
ui/views/widget/native_widget_private.h
ui/views/widget/widget.cc
ui/views/widget/widget.h
ui/views/widget/widget_unittest.cc