summaryrefslogtreecommitdiffstats
path: root/apps/ui
diff options
context:
space:
mode:
authorgarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-12 15:36:30 +0000
committergarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-12 15:37:46 +0000
commit6b6e01ba9b54db624d6104b801d2e54b8dcf506f (patch)
tree40c115362e27546dd268ebca1ae8ab9817fdb369 /apps/ui
parent7e75117e3e21c9fb1cc04f6eae534fa7da724cb2 (diff)
downloadchromium_src-6b6e01ba9b54db624d6104b801d2e54b8dcf506f.zip
chromium_src-6b6e01ba9b54db624d6104b801d2e54b8dcf506f.tar.gz
chromium_src-6b6e01ba9b54db624d6104b801d2e54b8dcf506f.tar.bz2
Update support for alphaEnabled (transparent windows) API
Rename transparentBackground -> alphaEnabled (per the spec). Add app.window.alphaEnabled permission to control which apps are allowed to use alphaEnabled when creating windows. Add browsertests to verify that the API is only available when permission had been granted and Beta channel or newer. Add a whitelist (only used in Stable) for this API that defaults to the same set of apps as for app.window.shape. BUG=260810 Review URL: https://codereview.chromium.org/190533006 Cr-Commit-Position: refs/heads/master@{#288983} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288983 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/ui')
-rw-r--r--apps/ui/views/native_app_window_views.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/ui/views/native_app_window_views.cc b/apps/ui/views/native_app_window_views.cc
index da84d8a..b2135fc 100644
--- a/apps/ui/views/native_app_window_views.cc
+++ b/apps/ui/views/native_app_window_views.cc
@@ -262,8 +262,7 @@ void NativeAppWindowViews::OnWidgetActivationChanged(views::Widget* widget,
void NativeAppWindowViews::RenderViewCreated(
content::RenderViewHost* render_view_host) {
- if (app_window_->requested_transparent_background() &&
- CanHaveAlphaEnabled()) {
+ if (app_window_->requested_alpha_enabled() && CanHaveAlphaEnabled()) {
content::RenderWidgetHostView* view = render_view_host->GetView();
DCHECK(view);
view->SetBackgroundOpaque(false);