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

Issue 2290603002: Enhance chrome.app.window API for shelf integration with pinning support (Closed)

Created:
4 years, 3 months ago by Andra Paraschiv
Modified:
4 years, 3 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, kalyank, Matt Giuca, sadrul, tfarina
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 for shelf integration with pinning support Enhance the chrome.app.window API for shelf integration with the possibility of pinning the showInShelf=true windows. Based on https://codereview.chromium.org/1914993002 Co-Authored-By: Valentin Ilie <valentin.ilie@intel.com>; BUG=610299 TEST=interactive_ui_tests Implement a simple extension that creates windows with showInShelf property set to true. Pin a newly created window that has its own icon in the shelf, then close it and open it again by clicking the pinned icon. TEST= https://codereview.chromium.org/2297633002 Committed: https://crrev.com/49ef88e5d3371340c6b04123b3659207995dbe09 Cr-Commit-Position: refs/heads/master@{#416252}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Review v2 #

Patch Set 3 : Rebase #

Total comments: 23

Patch Set 4 : Review v3 #

Total comments: 16

Patch Set 5 : Review v4 #

Total comments: 2

Patch Set 6 : Review v5 #

Patch Set 7 : Rebase #

Patch Set 8 : Shelf Delegate Fix after Rebase #

Patch Set 9 : Shelf Delegate Unit Tests Fix after Rebase #

Patch Set 10 : LauncherItemController Unit Tests Fix after Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -76 lines) Patch
M ash/common/shelf/shelf_delegate.h View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M ash/mus/shelf_delegate_mus.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ash/mus/shelf_delegate_mus.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M ash/shelf/shelf_widget_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M ash/test/test_shelf_delegate.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ash/test/test_shelf_delegate.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h View 1 2 3 4 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h View 1 2 3 4 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_item_controller.cc View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_playstore_shortcut_launcher_item_controller.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 3 4 5 6 4 chunks +19 lines, -9 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 1 2 3 4 4 chunks +19 lines, -37 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_item_controller.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.h View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (17 generated)
Andra Paraschiv
Uploaded a new CL for showInShelf=true window pinning support. Began working on including in the ...
4 years, 3 months ago (2016-08-29 11:37:42 UTC) #3
stevenjb
This approach introduces a lot of small confusing changes. We should either: a) Create a ...
4 years, 3 months ago (2016-08-29 15:56:30 UTC) #4
Andra Paraschiv
Thank you, Steven, for feedback. We can move forward with this approach. I updated the ...
4 years, 3 months ago (2016-08-30 09:58:24 UTC) #5
stevenjb
Definitely more clear now, thanks! https://codereview.chromium.org/2290603002/diff/1/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc File chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc (right): https://codereview.chromium.org/2290603002/diff/1/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc#newcode86 chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc:86: app_shelf_id_(app_shelf_id) { On 2016/08/30 ...
4 years, 3 months ago (2016-08-30 16:12:52 UTC) #6
Andra Paraschiv
Thank you for review. https://codereview.chromium.org/2290603002/diff/40001/ash/test/test_shelf_delegate.cc File ash/test/test_shelf_delegate.cc (right): https://codereview.chromium.org/2290603002/diff/40001/ash/test/test_shelf_delegate.cc#newcode115 ash/test/test_shelf_delegate.cc:115: return 0; On 2016/08/30 16:12:51, ...
4 years, 3 months ago (2016-08-31 10:57:19 UTC) #7
Reilly Grant (use Gerrit)
Can you better document what a "launch ID" is? How is it different from a ...
4 years, 3 months ago (2016-08-31 17:57:41 UTC) #8
stevenjb
On 2016/08/31 17:57:41, Reilly Grant wrote: > Can you better document what a "launch ID" ...
4 years, 3 months ago (2016-08-31 18:11:43 UTC) #9
stevenjb
lgtm with clarified comments. Reilly, if 'launch_id' is confusing, we could use 'window_key' instead to ...
4 years, 3 months ago (2016-08-31 18:24:28 UTC) #10
Reilly Grant (use Gerrit)
lgtm, thanks for the clarification.
4 years, 3 months ago (2016-08-31 19:14:28 UTC) #11
Mr4D (OOO till 08-26)
lgtm
4 years, 3 months ago (2016-08-31 21:52:53 UTC) #12
oshima
-> jamescook@
4 years, 3 months ago (2016-08-31 22:59:12 UTC) #14
James Cook
On 2016/08/31 22:59:12, oshima wrote: > -> jamescook@ Is there a design doc or extension ...
4 years, 3 months ago (2016-08-31 23:33:16 UTC) #15
James Cook
Please write a test for the new pinning behavior, or cite the specific test that ...
4 years, 3 months ago (2016-09-01 04:27:52 UTC) #16
James Cook
Please write a test for the new pinning behavior, or cite the specific test that ...
4 years, 3 months ago (2016-09-01 04:27:54 UTC) #17
James Cook
Please write a test for the new pinning behavior, or cite the specific test that ...
4 years, 3 months ago (2016-09-01 04:27:56 UTC) #18
Andra Paraschiv
Thank you all for feedback and Steven for clarifications. Yes, there are several ids used ...
4 years, 3 months ago (2016-09-01 08:27:25 UTC) #19
James Cook
LGTM assuming we settle on a name. I'll defer to Steven on that one -- ...
4 years, 3 months ago (2016-09-01 16:15:18 UTC) #20
James Cook
I chatted with Steven. |launch_id| is fine. Please make sure the tests you add in ...
4 years, 3 months ago (2016-09-01 23:01:28 UTC) #21
Andra Paraschiv
Ok, James, thank you for review. I updated the CL description to include the link ...
4 years, 3 months ago (2016-09-02 07:35:44 UTC) #24
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/2290603002/120001
4 years, 3 months ago (2016-09-02 08:22:25 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/229350)
4 years, 3 months ago (2016-09-02 08:34:08 UTC) #29
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/2290603002/140001
4 years, 3 months ago (2016-09-02 11:09:59 UTC) #32
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/291362) win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
4 years, 3 months ago (2016-09-02 11:25:39 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/2290603002/160001
4 years, 3 months ago (2016-09-02 11:56:48 UTC) #37
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/2290603002/180001
4 years, 3 months ago (2016-09-02 12:20:09 UTC) #41
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-09-02 13:10:19 UTC) #42
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 13:12:13 UTC) #44
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/49ef88e5d3371340c6b04123b3659207995dbe09
Cr-Commit-Position: refs/heads/master@{#416252}

Powered by Google App Engine
This is Rietveld 408576698