Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Issue 375183002: Add app.window.alphaEnabled() and onAlphaEnabledChanged. (Closed)

Created:
6 years, 5 months ago by jackhou1
Modified:
6 years, 5 months ago
Reviewers:
tapted, levin, benwells, sky, Wez
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284026

Patch Set 1 #

Patch Set 2 : Only allow transparent_background on frame: none. #

Patch Set 3 : Mac #

Total comments: 20

Patch Set 4 : Address comments #

Total comments: 4

Patch Set 5 : Address comments #

Total comments: 12

Patch Set 6 : Pipe CanHaveAlphaEnabled through Widget. #

Total comments: 4

Patch Set 7 : Split out non-essential parts for another CL. #

Total comments: 10

Patch Set 8 : Address comments #

Total comments: 4

Patch Set 9 : Change to Widget::IsTranslucentWindowOpacitySupported #

Patch Set 10 : x11 #

Total comments: 8

Patch Set 11 : Address comments #

Patch Set 12 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -7 lines) Patch
M apps/app_window.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -0 lines 0 comments Download
M apps/app_window.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -1 line 0 comments Download
M apps/ui/native_app_window.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M apps/ui/views/native_app_window_views.h View 1 2 3 4 5 3 chunks +4 lines, -1 line 0 comments Download
M apps/ui/views/native_app_window_views.cc View 1 2 3 4 5 6 7 8 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/app_window_desktop_window_tree_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/app_current_window_internal.idl View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/app_window.idl View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/app_window_custom_bindings.js View 1 3 chunks +8 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_private.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
jackhou1
wez, would you mind reviewing this while benwells is OOO? I'll ask Ben to review ...
6 years, 5 months ago (2014-07-09 07:43:13 UTC) #1
Wez
On 2014/07/09 07:43:13, jackhou1 wrote: > wez, would you mind reviewing this while benwells is ...
6 years, 5 months ago (2014-07-09 20:14:45 UTC) #2
Wez
https://codereview.chromium.org/375183002/diff/40001/apps/app_window.cc File apps/app_window.cc (right): https://codereview.chromium.org/375183002/diff/40001/apps/app_window.cc#newcode763 apps/app_window.cc:763: native_app_window_->CanHaveTransparentBackground()); Why do we not want to have alphaEnabled=false ...
6 years, 5 months ago (2014-07-09 22:03:30 UTC) #3
jackhou1
https://codereview.chromium.org/375183002/diff/40001/apps/app_window.cc File apps/app_window.cc (right): https://codereview.chromium.org/375183002/diff/40001/apps/app_window.cc#newcode763 apps/app_window.cc:763: native_app_window_->CanHaveTransparentBackground()); On 2014/07/09 22:03:29, Wez wrote: > Why do ...
6 years, 5 months ago (2014-07-10 03:04:18 UTC) #4
Wez
LGTM, though as noted, I'm no Aura/views expert; experts may prefer plumbing things all the ...
6 years, 5 months ago (2014-07-11 17:14:10 UTC) #5
jackhou1
Thanks for reviewing! https://codereview.chromium.org/375183002/diff/60001/apps/app_window.cc File apps/app_window.cc (right): https://codereview.chromium.org/375183002/diff/60001/apps/app_window.cc#newcode763 apps/app_window.cc:763: : false); On 2014/07/11 17:14:10, Wez ...
6 years, 5 months ago (2014-07-14 03:05:24 UTC) #6
jackhou1
benwells, could you take a look at this? I've highlighting some remaining questions below. https://codereview.chromium.org/375183002/diff/40001/apps/ui/views/native_app_window_views.cc ...
6 years, 5 months ago (2014-07-14 03:08:12 UTC) #7
tapted
drive-by: (I had a peek to see if there was anything yet for mac-views :) ...
6 years, 5 months ago (2014-07-14 03:30:24 UTC) #8
jackhou1
https://codereview.chromium.org/375183002/diff/80001/apps/app_window.cc File apps/app_window.cc (right): https://codereview.chromium.org/375183002/diff/80001/apps/app_window.cc#newcode168 apps/app_window.cc:168: always_on_top(false) {} On 2014/07/14 03:30:24, tapted wrote: > initialize ...
6 years, 5 months ago (2014-07-14 04:51:03 UTC) #9
levin
https://codereview.chromium.org/375183002/diff/100001/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/375183002/diff/100001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode247 chrome/browser/extensions/api/app_window/app_window_api.cc:247: } Changes in this file seem unrelated to the ...
6 years, 5 months ago (2014-07-15 20:40:05 UTC) #10
jackhou1
https://codereview.chromium.org/375183002/diff/100001/chrome/browser/extensions/api/app_window/app_window_api.cc File chrome/browser/extensions/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/375183002/diff/100001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode247 chrome/browser/extensions/api/app_window/app_window_api.cc:247: } On 2014/07/15 20:40:05, levin wrote: > Changes in ...
6 years, 5 months ago (2014-07-16 01:26:29 UTC) #11
jackhou1
tapted, would you mind reviewing this for OWNERS in apps/ since benwells is away?
6 years, 5 months ago (2014-07-16 01:27:21 UTC) #12
tapted
mostly nits. You might still need an owner for chrome/{common,browser,renderer*/extensions/* (and sky might have a ...
6 years, 5 months ago (2014-07-16 03:01:01 UTC) #13
jackhou1
> mostly nits. You might still need an owner for > chrome/{common,browser,renderer*/extensions/* (and sky might ...
6 years, 5 months ago (2014-07-16 05:54:05 UTC) #14
jackhou1
sky, could you please review this for OWNERS in: chrome/ ui/views/
6 years, 5 months ago (2014-07-16 07:45:13 UTC) #15
tapted
apps/ lgtm
6 years, 5 months ago (2014-07-16 07:49:44 UTC) #16
sky
You also need to update the x11 side. https://codereview.chromium.org/375183002/diff/140001/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/375183002/diff/140001/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc#newcode368 ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc:368: return ...
6 years, 5 months ago (2014-07-16 15:14:54 UTC) #17
jackhou1
https://codereview.chromium.org/375183002/diff/140001/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/375183002/diff/140001/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc#newcode368 ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc:368: return ui::win::IsAeroGlassEnabled(); On 2014/07/16 15:14:54, sky wrote: > This ...
6 years, 5 months ago (2014-07-17 03:07:23 UTC) #18
sky
LGTM https://codereview.chromium.org/375183002/diff/180001/ui/views/widget/desktop_aura/desktop_window_tree_host.h File ui/views/widget/desktop_aura/desktop_window_tree_host.h (right): https://codereview.chromium.org/375183002/diff/180001/ui/views/widget/desktop_aura/desktop_window_tree_host.h#newcode157 ui/views/widget/desktop_aura/desktop_window_tree_host.h:157: // Returns true if the Widget can have ...
6 years, 5 months ago (2014-07-17 15:52:32 UTC) #19
tapted
https://codereview.chromium.org/375183002/diff/180001/ui/views/widget/native_widget_mac.mm File ui/views/widget/native_widget_mac.mm (right): https://codereview.chromium.org/375183002/diff/180001/ui/views/widget/native_widget_mac.mm#newcode425 ui/views/widget/native_widget_mac.mm:425: bool NativeWidgetMac::IsTranslucentWindowOpacitySupported() const { On 2014/07/17 15:52:32, sky wrote: ...
6 years, 5 months ago (2014-07-18 00:22:28 UTC) #20
jackhou1
https://codereview.chromium.org/375183002/diff/180001/ui/views/widget/desktop_aura/desktop_window_tree_host.h File ui/views/widget/desktop_aura/desktop_window_tree_host.h (right): https://codereview.chromium.org/375183002/diff/180001/ui/views/widget/desktop_aura/desktop_window_tree_host.h#newcode157 ui/views/widget/desktop_aura/desktop_window_tree_host.h:157: // Returns true if the Widget can have a ...
6 years, 5 months ago (2014-07-18 00:41:16 UTC) #21
jackhou1
The CQ bit was checked by jackhou@chromium.org
6 years, 5 months ago (2014-07-18 04:28:11 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/375183002/220001
6 years, 5 months ago (2014-07-18 04:30:44 UTC) #23
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 07:21:29 UTC) #24
Message was sent while issue was closed.
Change committed as 284026

Powered by Google App Engine
This is Rietveld 408576698