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

Issue 190533006: Add support for transparent background API (Closed)

Created:
6 years, 9 months ago by garykac
Modified:
6 years, 4 months ago
Reviewers:
jackhou1, benwells
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : Update serialized dict #

Patch Set 3 : Merge in permission cl #

Patch Set 4 : Add browsertests #

Patch Set 5 : sync #

Patch Set 6 : Cleanup unittest names #

Patch Set 7 : Fix #ifdef #

Patch Set 8 : Fix asserts; Only check transBkgd permission if Aura. #

Patch Set 9 : Rename transparentBackground to alphaEnabled #

Total comments: 1

Patch Set 10 : Add NoPerm browsertests #

Patch Set 11 : sync #

Patch Set 12 : Wrap Missing Permission string in #ifdef AURA #

Total comments: 14

Patch Set 13 : Review comments & merge #

Patch Set 14 : Fix windows/mac builds #

Patch Set 15 : Remove unused var from Non-Ash builds #

Patch Set 16 : Merge #

Patch Set 17 : Fix unittests #

Patch Set 18 : Fix Mac (no-Aura) browsertest #

Total comments: 7

Patch Set 19 : Update based on review comments #

Patch Set 20 : sync/merge #

Patch Set 21 : Update permission tests #

Patch Set 22 : #ifdef ASH for windows #

Total comments: 8

Patch Set 23 : Use dev channel; Reduce whitelist; Use AURA #

Patch Set 24 : Add IsAeroGlass check for Win #

Patch Set 25 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -30 lines) Patch
M apps/app_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +5 lines, -7 lines 0 comments Download
M apps/app_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +8 lines, -7 lines 0 comments Download
M apps/ui/views/native_app_window_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +33 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/app_window/app_window_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/app_window.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/app_window_custom_bindings.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/has_permissions_has_alpha/background.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +42 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/has_permissions_has_alpha/index.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/has_permissions_has_alpha/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/has_permissions_no_alpha/background.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +42 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/has_permissions_no_alpha/index.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/has_permissions_no_alpha/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/in_stable/background.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +33 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/in_stable/index.html View 1 2 3 4 5 6 7 8 9 10 11 12 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/in_stable/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/no_permissions/background.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +35 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/no_permissions/index.html View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/windows_api_alpha_enabled/no_permissions/manifest.json View 1 2 3 4 5 6 7 8 9 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
garykac
6 years, 7 months ago (2014-05-05 16:46:30 UTC) #1
benwells
On 2014/05/05 16:46:30, garykac wrote: Let's get the API proposal lg'd before we land this.
6 years, 7 months ago (2014-05-06 07:02:14 UTC) #2
garykac
The implementation now matches the updated API proposal.
6 years, 7 months ago (2014-05-08 03:46:24 UTC) #3
garykac
https://codereview.chromium.org/190533006/diff/150001/apps/app_window.cc File apps/app_window.cc (right): https://codereview.chromium.org/190533006/diff/150001/apps/app_window.cc#newcode164 apps/app_window.cc:164: always_on_top(false) { required by git cl format
6 years, 7 months ago (2014-05-08 03:46:36 UTC) #4
benwells
https://codereview.chromium.org/190533006/diff/210001/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/190533006/diff/210001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode231 chrome/browser/extensions/api/app_window/app_window_api.cc:231: #if defined(USE_AURA) Why is this gated on aura? If ...
6 years, 7 months ago (2014-05-12 04:25:17 UTC) #5
garykac
https://codereview.chromium.org/190533006/diff/210001/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/190533006/diff/210001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode231 chrome/browser/extensions/api/app_window/app_window_api.cc:231: #if defined(USE_AURA) On 2014/05/12 04:25:17, benwells wrote: > Why ...
6 years, 5 months ago (2014-07-09 23:19:21 UTC) #6
jackhou1
https://codereview.chromium.org/190533006/diff/210001/chrome/renderer/resources/extensions/app_window_custom_bindings.js File chrome/renderer/resources/extensions/app_window_custom_bindings.js (right): https://codereview.chromium.org/190533006/diff/210001/chrome/renderer/resources/extensions/app_window_custom_bindings.js#newcode347 chrome/renderer/resources/extensions/app_window_custom_bindings.js:347: dispatchEventIfExists(currentWindow, "onAlphaEnabledChanged"); On 2014/07/09 23:19:21, garykac wrote: > On ...
6 years, 5 months ago (2014-07-10 03:06:56 UTC) #7
garykac
On 2014/07/10 03:06:56, jackhou1 wrote: > https://codereview.chromium.org/190533006/diff/210001/chrome/renderer/resources/extensions/app_window_custom_bindings.js > File chrome/renderer/resources/extensions/app_window_custom_bindings.js (right): > > https://codereview.chromium.org/190533006/diff/210001/chrome/renderer/resources/extensions/app_window_custom_bindings.js#newcode347 > ...
6 years, 5 months ago (2014-07-11 22:34:52 UTC) #8
jackhou1
On 2014/07/11 22:34:52, garykac wrote: > On 2014/07/10 03:06:56, jackhou1 wrote: > > > https://codereview.chromium.org/190533006/diff/210001/chrome/renderer/resources/extensions/app_window_custom_bindings.js ...
6 years, 5 months ago (2014-07-14 02:57:59 UTC) #9
garykac
On 2014/07/14 02:57:59, jackhou1 wrote: > On 2014/07/11 22:34:52, garykac wrote: > > On 2014/07/10 ...
6 years, 5 months ago (2014-07-14 17:35:12 UTC) #10
jackhou1
On 2014/07/14 17:35:12, garykac wrote: > On 2014/07/14 02:57:59, jackhou1 wrote: > > On 2014/07/11 ...
6 years, 5 months ago (2014-07-16 01:05:54 UTC) #11
benwells
I've been on leave for some time and am just catching up again. Can someone ...
6 years, 5 months ago (2014-07-18 03:31:46 UTC) #12
garykac
On 2014/07/16 01:05:54, jackhou1 wrote: > I think it's quite important for Hangouts that this ...
6 years, 5 months ago (2014-07-18 17:02:49 UTC) #13
garykac
Merged with unittests passing locally and ready for review.
6 years, 5 months ago (2014-07-19 02:40:26 UTC) #14
benwells
On 2014/07/19 02:40:26, garykac wrote: > Merged with unittests passing locally and ready for review. ...
6 years, 5 months ago (2014-07-22 03:17:56 UTC) #15
jackhou1
Thanks for merging! The CL description also needs to be updated. https://codereview.chromium.org/190533006/diff/330001/apps/app_window.h File apps/app_window.h (right): ...
6 years, 5 months ago (2014-07-22 05:35:35 UTC) #16
garykac
https://codereview.chromium.org/190533006/diff/210001/chrome/renderer/resources/extensions/app_window_custom_bindings.js File chrome/renderer/resources/extensions/app_window_custom_bindings.js (right): https://codereview.chromium.org/190533006/diff/210001/chrome/renderer/resources/extensions/app_window_custom_bindings.js#newcode347 chrome/renderer/resources/extensions/app_window_custom_bindings.js:347: dispatchEventIfExists(currentWindow, "onAlphaEnabledChanged"); On 2014/07/10 03:06:55, jackhou1 wrote: > On ...
6 years, 5 months ago (2014-07-25 22:50:32 UTC) #17
jackhou1
Sorry for the delay. lgtm except we should still keep the missing permission error. https://codereview.chromium.org/190533006/diff/330001/chrome/browser/extensions/api/app_window/app_window_api.cc ...
6 years, 4 months ago (2014-07-29 23:39:10 UTC) #18
garykac
https://codereview.chromium.org/190533006/diff/330001/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/190533006/diff/330001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode60 chrome/browser/extensions/api/app_window/app_window_api.cc:60: #if !defined(USE_AURA) On 2014/07/29 23:39:10, jackhou1 wrote: > On ...
6 years, 4 months ago (2014-08-04 23:11:53 UTC) #19
garykac
The CQ bit was checked by garykac@chromium.org
6 years, 4 months ago (2014-08-04 23:12:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/garykac@chromium.org/190533006/410001
6 years, 4 months ago (2014-08-04 23:15:02 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-05 04:46:32 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-05 04:49:33 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/2007)
6 years, 4 months ago (2014-08-05 04:49:35 UTC) #24
benwells
On 2014/08/05 04:49:35, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 4 months ago (2014-08-05 04:59:17 UTC) #25
benwells
https://codereview.chromium.org/190533006/diff/410001/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/190533006/diff/410001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode58 chrome/browser/extensions/api/app_window/app_window_api.cc:58: "The alphaEnabled option requires beta channel or newer."; Normally ...
6 years, 4 months ago (2014-08-05 23:37:06 UTC) #26
garykac
https://codereview.chromium.org/190533006/diff/410001/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/190533006/diff/410001/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode58 chrome/browser/extensions/api/app_window/app_window_api.cc:58: "The alphaEnabled option requires beta channel or newer."; On ...
6 years, 4 months ago (2014-08-07 03:54:01 UTC) #27
garykac
ptal
6 years, 4 months ago (2014-08-08 02:51:38 UTC) #28
benwells
lgtm
6 years, 4 months ago (2014-08-12 03:38:07 UTC) #29
garykac
The CQ bit was checked by garykac@chromium.org
6 years, 4 months ago (2014-08-12 14:50:03 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/garykac@chromium.org/190533006/470001
6 years, 4 months ago (2014-08-12 14:51:20 UTC) #31
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 15:36:36 UTC) #32
Message was sent while issue was closed.
Change committed as 288983

Powered by Google App Engine
This is Rietveld 408576698