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

Issue 1914993002: Enhance chrome.app.window API with better shelf integration (Closed)

Created:
4 years, 8 months ago by Valentin Ilie
Modified:
4 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enhance chrome.app.window API with better shelf integration Enhance chrome.app.window API with the possibility of creating a window that will show up separately in the shelf, tied to its own icon. Added a new property, showInShelf, to CreateWindowOptions. Default value for the property is false. Based on https://codereview.chromium.org/1811523002 Co-Authored-By: Paul Sapunaru <paul.sapunaru@intel.com>; Co-Authored-By: Andra Paraschiv <andra.paraschiv@intel.com>; BUG=610299 TEST=interactive_ui_tests Implement a simple extension that creates windows with the property set to true. Observe that the newly created windows are added as separate icons in the shelf. Committed: https://crrev.com/3049b971f57ee97b1a602605e90ca18223a30653 Cr-Commit-Position: refs/heads/master@{#405978}

Patch Set 1 #

Patch Set 2 : browsertest: Close windows in other order #

Total comments: 30

Patch Set 3 : Review v1 #

Patch Set 4 : Rebase v1 #

Total comments: 10

Patch Set 5 : Review v2 #

Patch Set 6 : Rebase + Fixes #

Total comments: 22

Patch Set 7 : Rebase + Fixes v4 #

Total comments: 18

Patch Set 8 : Rebase + Fixes v5 #

Total comments: 3

Patch Set 9 : Rebase + Fixes v6 #

Total comments: 2

Patch Set 10 : Rebase + Fixes v7 #

Patch Set 11 : Rebase + Fixes v8 #

Patch Set 12 : Fix LaunchPinned/UnpinRunning v9 #

Total comments: 4

Patch Set 13 : Rebase + Fixes v10 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -29 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +111 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +69 lines, -26 lines 0 comments Download
M extensions/browser/api/app_window/app_window_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +11 lines, -0 lines 0 comments Download
M extensions/browser/app_window/app_window.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -0 lines 0 comments Download
M extensions/browser/app_window/app_window.cc View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M extensions/browser/app_window/app_window_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +13 lines, -0 lines 0 comments Download
M extensions/common/api/app_window.idl View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (18 generated)
Valentin Ilie
This is based on https://codereview.chromium.org/1811523002; Continued the work + some logic fixes.
4 years, 8 months ago (2016-04-25 13:01:06 UTC) #2
Valentin Ilie
On 2016/04/25 13:01:06, Valentin Ilie wrote: > This is based on https://codereview.chromium.org/1811523002; Continued the work ...
4 years, 8 months ago (2016-04-26 07:58:01 UTC) #3
stevenjb
https://codereview.chromium.org/1914993002/diff/20001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc (right): https://codereview.chromium.org/1914993002/diff/20001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc#newcode1498 chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc:1498: // Test 1 Describe what each part of this ...
4 years, 8 months ago (2016-04-26 16:30:01 UTC) #4
Valentin Ilie
We addressed most of the feedback. Do you have any information about how this CL ...
4 years, 7 months ago (2016-04-27 14:20:44 UTC) #5
stevenjb
1. Please respond to each review comment with 'Done' or a question or comment. This ...
4 years, 7 months ago (2016-04-27 16:00:04 UTC) #6
stevenjb
+skuhne@
4 years, 7 months ago (2016-04-27 16:00:25 UTC) #8
Valentin Ilie
https://codereview.chromium.org/1914993002/diff/20001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc (right): https://codereview.chromium.org/1914993002/diff/20001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc#newcode1498 chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc:1498: // Test 1 On 2016/04/26 16:30:00, stevenjb wrote: > ...
4 years, 7 months ago (2016-04-28 09:40:09 UTC) #9
Andra Paraschiv
https://codereview.chromium.org/1914993002/diff/20001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc (right): https://codereview.chromium.org/1914993002/diff/20001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc#newcode161 chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc:161: app_controller_map_[app_shelf_id] = controller; On 2016/04/26 16:30:00, stevenjb wrote: > ...
4 years, 7 months ago (2016-04-28 09:49:03 UTC) #10
stevenjb
Mostly nits, + the concerns previously mentioned which we can discuss in the design doc ...
4 years, 7 months ago (2016-05-03 20:39:49 UTC) #11
stevenjb
Also, this needs a link to a tracking issue in crbug.com (which should have a ...
4 years, 7 months ago (2016-05-03 20:40:23 UTC) #12
Andra Paraschiv
https://codereview.chromium.org/1914993002/diff/20001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc (right): https://codereview.chromium.org/1914993002/diff/20001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc#newcode161 chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc:161: app_controller_map_[app_shelf_id] = controller; On 2016/05/03 20:39:48, stevenjb wrote: > ...
4 years, 7 months ago (2016-05-04 11:59:09 UTC) #15
Andra Paraschiv
On 2016/05/04 11:59:09, andra.paraschiv wrote: > https://codereview.chromium.org/1914993002/diff/20001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc > File chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc > (right): > > https://codereview.chromium.org/1914993002/diff/20001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc#newcode161 ...
4 years, 6 months ago (2016-06-14 16:06:51 UTC) #17
stevenjb
Apologies, I'm kind of swamped and couldn't do a better job of making suggestions, but ...
4 years, 6 months ago (2016-06-14 18:33:22 UTC) #18
Andra Paraschiv
https://codereview.chromium.org/1914993002/diff/100001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc (right): https://codereview.chromium.org/1914993002/diff/100001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc#newcode167 chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc:167: owner()->SetLauncherItemImage(shelf_id, app_icon.AsImageSkia()); On 2016/06/14 18:33:21, stevenjb wrote: > Currently ...
4 years, 6 months ago (2016-06-21 09:04:14 UTC) #19
stevenjb
On 2016/06/21 09:04:14, andra.paraschiv wrote: > https://codereview.chromium.org/1914993002/diff/100001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc > File chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc > (right): > > https://codereview.chromium.org/1914993002/diff/100001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc#newcode167 ...
4 years, 6 months ago (2016-06-21 18:18:21 UTC) #20
Andra Paraschiv
On 2016/06/21 18:18:21, stevenjb wrote: > On 2016/06/21 09:04:14, andra.paraschiv wrote: > > > https://codereview.chromium.org/1914993002/diff/100001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc ...
4 years, 6 months ago (2016-06-23 09:23:25 UTC) #21
stevenjb
Yes, that would be a problem, thank you for thinking that through. In practice, it ...
4 years, 6 months ago (2016-06-23 17:14:06 UTC) #22
Andra Paraschiv
Yes, you are right, in order to identify which pinned window to open we need ...
4 years, 6 months ago (2016-06-24 13:50:33 UTC) #23
stevenjb
We can add a comment in the idl, and we can enforce it in the ...
4 years, 6 months ago (2016-06-24 16:12:17 UTC) #24
Andra Paraschiv
https://codereview.chromium.org/1914993002/diff/100001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc (right): https://codereview.chromium.org/1914993002/diff/100001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc#newcode1735 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc:1735: } On 2016/06/14 18:33:21, stevenjb wrote: > This needs ...
4 years, 5 months ago (2016-06-28 07:04:46 UTC) #25
Valentin Ilie
reillyg@chromium.org: Please review changes in 1914993002
4 years, 5 months ago (2016-07-02 09:05:06 UTC) #27
Reilly Grant (use Gerrit)
I think it's confusing to start using window_key where previously this code worked on app_shell_id. ...
4 years, 5 months ago (2016-07-06 19:53:00 UTC) #28
stevenjb
Thanks Reilly for the careful review; I haven't been in this code in a very ...
4 years, 5 months ago (2016-07-07 22:55:55 UTC) #29
Andra Paraschiv
Thank you Reilly and Steven for the review. https://codereview.chromium.org/1914993002/diff/120001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc (right): https://codereview.chromium.org/1914993002/diff/120001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc#newcode120 chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc:120: app_window->window_key() ...
4 years, 5 months ago (2016-07-08 07:20:27 UTC) #30
Andra Paraschiv
https://codereview.chromium.org/1914993002/diff/140001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc (right): https://codereview.chromium.org/1914993002/diff/140001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc#newcode37 chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc:37: app_window->extension_id(); On 2016/07/08 07:20:27, andra.paraschiv wrote: > On 2016/07/07 ...
4 years, 5 months ago (2016-07-11 13:02:56 UTC) #31
Reilly Grant (use Gerrit)
lgtm
4 years, 5 months ago (2016-07-11 19:27:04 UTC) #32
stevenjb
lgtm https://codereview.chromium.org/1914993002/diff/160001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc (right): https://codereview.chromium.org/1914993002/diff/160001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc#newcode29 chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc:29: // parameter is true the window key value ...
4 years, 5 months ago (2016-07-11 19:45:14 UTC) #33
Valentin Ilie
https://codereview.chromium.org/1914993002/diff/160001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc (right): https://codereview.chromium.org/1914993002/diff/160001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc#newcode29 chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc:29: // parameter is true the window key value is ...
4 years, 5 months ago (2016-07-12 08:01:53 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1914993002/180001
4 years, 5 months ago (2016-07-12 08:09:27 UTC) #37
commit-bot: I haz the power
The author valentin.ilie@intel.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
4 years, 5 months ago (2016-07-12 08:09:31 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1914993002/180001
4 years, 5 months ago (2016-07-13 08:14:24 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/261915)
4 years, 5 months ago (2016-07-13 08:52:33 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1914993002/200001
4 years, 5 months ago (2016-07-13 09:43:15 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/243441)
4 years, 5 months ago (2016-07-13 10:54:26 UTC) #48
Valentin Ilie
On 2016/07/13 10:54:26, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 5 months ago (2016-07-15 10:53:53 UTC) #49
stevenjb
Hooray for tests. https://codereview.chromium.org/1914993002/diff/220001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc (right): https://codereview.chromium.org/1914993002/diff/220001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc#newcode163 chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc:163: } else if (app_shelf_id == app_id) ...
4 years, 5 months ago (2016-07-15 16:58:31 UTC) #50
Valentin Ilie
https://codereview.chromium.org/1914993002/diff/220001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc File chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc (right): https://codereview.chromium.org/1914993002/diff/220001/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc#newcode163 chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc:163: } else if (app_shelf_id == app_id) { On 2016/07/15 ...
4 years, 5 months ago (2016-07-18 11:05:20 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/1914993002/240001
4 years, 5 months ago (2016-07-18 11:05:57 UTC) #54
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 5 months ago (2016-07-18 11:42:11 UTC) #56
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 11:42:17 UTC) #57
commit-bot: I haz the power
4 years, 5 months ago (2016-07-18 11:45:24 UTC) #59
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/3049b971f57ee97b1a602605e90ca18223a30653
Cr-Commit-Position: refs/heads/master@{#405978}

Powered by Google App Engine
This is Rietveld 408576698