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

Issue 10986092: Transparent apps support (Closed)

Created:
8 years, 2 months ago by Bernie
Modified:
7 years, 11 months ago
Reviewers:
jeremya, reveman, Matt Perry, sky
CC:
chromium-reviews, jeremya+watch_chromium.org, Aaron Boodman, mihaip-chromium-reviews_chromium.org, tfarina
Visibility:
Public.

Description

Transparent apps support This is an initial implementation of an experimental extension which enables apps using the appv2 API to request a transparent window background through a new flag passed to chrome.app.window.create(). How to use: chrome.app.window.create('xeyes.html', { width: 500, height: 309, // Needs "experimental" permission in manifest.json transparentBackground: true }); Basic Demo: http://codewiz.org/pub/transparent-hello-world-app Caveats: - Transparent windows have a grey bar below the window title, about 30 pixels high. (http://crbug.com/152838) BUG=125295 TEST=demo works R=reveman@chromium.org,mpcomplete@chromium.org,sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175700

Patch Set 1 #

Patch Set 2 : Fix author email #

Total comments: 18

Patch Set 3 : Address review comments #

Total comments: 2

Patch Set 4 : Address reviewer's comment #

Total comments: 4

Patch Set 5 : Rebase #

Patch Set 6 : Address review comments. #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -4 lines) Patch
M chrome/browser/extensions/api/app_window/app_window_api.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/extensions/shell_window.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/native_app_window_views.h View 1 2 3 4 4 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/native_app_window_views.cc View 1 2 3 4 2 chunks +20 lines, -1 line 0 comments Download
M chrome/common/extensions/api/app_window.idl View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
Bernie
8 years, 2 months ago (2012-09-28 18:59:04 UTC) #1
Mihai Parparita -not on Chrome
8 years, 2 months ago (2012-09-28 19:12:48 UTC) #2
Mihai Parparita -not on Chrome
Jeremy: how likely is it that we could implement this on Windows (I seem to ...
8 years, 2 months ago (2012-09-28 19:15:34 UTC) #3
reveman
On 2012/09/28 19:15:34, Mihai Parparita wrote: > Jeremy: how likely is it that we could ...
8 years, 2 months ago (2012-09-28 19:52:37 UTC) #4
Matt Perry
code lgtm
8 years, 2 months ago (2012-09-28 20:33:20 UTC) #5
sky
http://codereview.chromium.org/10986092/diff/9/chrome/browser/ui/views/extensions/shell_window_views.cc File chrome/browser/ui/views/extensions/shell_window_views.cc (right): http://codereview.chromium.org/10986092/diff/9/chrome/browser/ui/views/extensions/shell_window_views.cc#newcode328 chrome/browser/ui/views/extensions/shell_window_views.cc:328: params.remove_standard_frame = true; Don't you need to set params.transparent ...
8 years, 2 months ago (2012-09-28 22:29:13 UTC) #6
reveman
http://codereview.chromium.org/10986092/diff/9/chrome/browser/ui/views/extensions/shell_window_views.cc File chrome/browser/ui/views/extensions/shell_window_views.cc (right): http://codereview.chromium.org/10986092/diff/9/chrome/browser/ui/views/extensions/shell_window_views.cc#newcode328 chrome/browser/ui/views/extensions/shell_window_views.cc:328: params.remove_standard_frame = true; On 2012/09/28 22:29:13, sky wrote: > ...
8 years, 2 months ago (2012-09-28 22:50:38 UTC) #7
Bernie
https://codereview.chromium.org/10986092/diff/9/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/10986092/diff/9/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode98 chrome/browser/extensions/api/app_window/app_window_api.cc:98: CommandLine::ForCurrentProcess()->HasSwitch( On 2012/09/28 19:15:34, Mihai Parparita wrote: > This ...
8 years, 2 months ago (2012-10-01 18:47:24 UTC) #8
Mihai Parparita -not on Chrome
https://codereview.chromium.org/10986092/diff/9/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/10986092/diff/9/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode98 chrome/browser/extensions/api/app_window/app_window_api.cc:98: CommandLine::ForCurrentProcess()->HasSwitch( On 2012/10/01 18:47:24, Bernie wrote: > On 2012/09/28 ...
8 years, 2 months ago (2012-10-01 20:04:58 UTC) #9
jeremya
lgtm. This isn't possible on native Win32 until Aura-on-win32 is done (not for a while). ...
8 years, 2 months ago (2012-10-04 22:12:56 UTC) #10
Bernie
https://codereview.chromium.org/10986092/diff/9/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/10986092/diff/9/chrome/browser/extensions/api/app_window/app_window_api.cc#newcode98 chrome/browser/extensions/api/app_window/app_window_api.cc:98: CommandLine::ForCurrentProcess()->HasSwitch( On 2012/10/01 20:04:58, Mihai Parparita wrote: > On ...
8 years, 2 months ago (2012-10-10 21:05:00 UTC) #11
reveman
lgtm https://codereview.chromium.org/10986092/diff/9/chrome/browser/ui/views/extensions/shell_window_views.cc File chrome/browser/ui/views/extensions/shell_window_views.cc (right): https://codereview.chromium.org/10986092/diff/9/chrome/browser/ui/views/extensions/shell_window_views.cc#newcode612 chrome/browser/ui/views/extensions/shell_window_views.cc:612: if (transparent_background_) { On 2012/10/10 21:05:01, Bernie wrote: ...
8 years, 2 months ago (2012-10-11 17:25:58 UTC) #12
Bernie
https://codereview.chromium.org/10986092/diff/21001/chrome/common/extensions/api/app_window.idl File chrome/common/extensions/api/app_window.idl (right): https://codereview.chromium.org/10986092/diff/21001/chrome/common/extensions/api/app_window.idl#newcode52 chrome/common/extensions/api/app_window.idl:52: // Requires experimental API permission. On 2012/10/11 17:25:58, David ...
8 years, 1 month ago (2012-11-08 01:55:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/codewiz@chromium.org/10986092/27001
8 years, 1 month ago (2012-11-08 01:56:31 UTC) #14
commit-bot: I haz the power
Presubmit check for 10986092-27001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-08 01:56:39 UTC) #15
Bernie
Sky and mihaip, could you please take another look?
8 years, 1 month ago (2012-11-08 01:59:09 UTC) #16
sky
https://codereview.chromium.org/10986092/diff/27001/chrome/browser/ui/views/extensions/shell_window_views.cc File chrome/browser/ui/views/extensions/shell_window_views.cc (right): https://codereview.chromium.org/10986092/diff/27001/chrome/browser/ui/views/extensions/shell_window_views.cc#newcode404 chrome/browser/ui/views/extensions/shell_window_views.cc:404: params.use_system_default_icon = true; Don't you also need to set ...
8 years, 1 month ago (2012-11-08 16:29:10 UTC) #17
jeremya
lgtm https://codereview.chromium.org/10986092/diff/27001/chrome/common/extensions/api/app_window.idl File chrome/common/extensions/api/app_window.idl (right): https://codereview.chromium.org/10986092/diff/27001/chrome/common/extensions/api/app_window.idl#newcode52 chrome/common/extensions/api/app_window.idl:52: // The value 'experimental-html' requires experimental API permission. ...
8 years, 1 month ago (2012-11-11 23:22:43 UTC) #18
Bernie
PTAL https://codereview.chromium.org/10986092/diff/27001/chrome/browser/ui/views/extensions/shell_window_views.cc File chrome/browser/ui/views/extensions/shell_window_views.cc (right): https://codereview.chromium.org/10986092/diff/27001/chrome/browser/ui/views/extensions/shell_window_views.cc#newcode404 chrome/browser/ui/views/extensions/shell_window_views.cc:404: params.use_system_default_icon = true; On 2012/11/08 16:29:10, sky wrote: ...
8 years ago (2012-12-18 21:08:36 UTC) #19
jeremya
still lgtm.
7 years, 11 months ago (2013-01-02 22:46:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/codewiz@chromium.org/10986092/38001
7 years, 11 months ago (2013-01-03 18:35:33 UTC) #21
commit-bot: I haz the power
Presubmit check for 10986092-38001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-03 18:35:40 UTC) #22
Bernie
On 2013/01/02 22:46:53, jeremya wrote: > still lgtm. Thanks. Sky, could you please review the ...
7 years, 11 months ago (2013-01-03 18:38:14 UTC) #23
sky
LGTM
7 years, 11 months ago (2013-01-07 17:31:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/codewiz@chromium.org/10986092/38001
7 years, 11 months ago (2013-01-08 22:29:58 UTC) #25
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/extensions/shell_window.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-08 22:30:05 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/codewiz@chromium.org/10986092/49001
7 years, 11 months ago (2013-01-09 00:01:29 UTC) #27
commit-bot: I haz the power
7 years, 11 months ago (2013-01-09 03:56:56 UTC) #28
Message was sent while issue was closed.
Change committed as 175700

Powered by Google App Engine
This is Rietveld 408576698