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

Issue 2894743002: Make launching apps from shelf more intuitive (Closed)

Created:
3 years, 7 months ago by weidongg
Modified:
3 years, 7 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, Matt Giuca, tfarina, chromium-apps-reviews_chromium.org, kalyank
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make launching apps from shelf more intuitive In multi-display environment, each display has one copy of shelf. Launching an app from a shelf will open a tab in the browser that has focus, no matter which display the browser is in. This is annoying when the focus and the shelf being clicked are in different displays. A more intuitive way is to open the app in the same display as the shelf being clicked. The details of behavior changes in this CL: - opens a new tab in the uppermost browser in the display where the shelf is clicked if the display has one or more browsers. - opens a new browser along with a new tab in the display where the shelf is clicked if the display has no browser. - takes the same behavior when the app is lauched from launcher context menu of the shelf. BUG=586091 TEST=browser_tests --gtest_filter=ShelfAppBrowserTest.LaunchAppFromDisplayWithoutFocus* Review-Url: https://codereview.chromium.org/2894743002 Cr-Commit-Position: refs/heads/master@{#475152} Committed: https://chromium.googlesource.com/chromium/src/+/07d1c26bd8f426f51c051891d7487404f1be4115

Patch Set 1 #

Patch Set 2 : This patch set has many platform related issue #

Total comments: 15

Patch Set 3 : Replace root window with display id in app launch params. #

Total comments: 4

Patch Set 4 : Apply fix to patch set 3 #

Total comments: 4

Patch Set 5 : Please ignore this patch set #

Patch Set 6 : Apply fix to patch set 4: Use default value for |display_id| #

Patch Set 7 : update CL after gclient sync #

Patch Set 8 : Affected by new revision, gclient sync and re-upload. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -68 lines) Patch
M ash/shelf/shelf.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shelf/shelf.cc View 1 2 3 4 5 6 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_controller_delegate.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/test/test_app_list_controller_delegate.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/test/test_app_list_controller_delegate.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.cc View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 5 6 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 6 3 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +97 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_controller_helper.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_controller_helper.cc View 1 2 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_finder.h View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_finder.cc View 1 2 3 4 5 6 7 7 chunks +39 lines, -22 lines 0 comments Download
M chrome/browser/ui/extensions/app_launch_params.h View 1 2 3 4 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/extensions/app_launch_params.cc View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/extensions/application_launch.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 48 (26 generated)
weidongg
skuhne@chromium.org: Please review changes in stevenjb@chromium.org: Please review changes in
3 years, 7 months ago (2017-05-19 01:42:22 UTC) #3
weidongg
skuhne@chromium.org: Please review changes in ash/shelf/* stevenjb@chromium.org: Please review changes in chrome/browser/ui/ash/* benwells@chromium.org: Please review ...
3 years, 7 months ago (2017-05-19 01:44:27 UTC) #4
benwells
Have you looked at fixing this at a deeper level? That is, not in ash ...
3 years, 7 months ago (2017-05-19 03:11:46 UTC) #5
weidongg
On 2017/05/19 03:11:46, benwells wrote: > Have you looked at fixing this at a deeper ...
3 years, 7 months ago (2017-05-19 04:09:23 UTC) #6
benwells
On 2017/05/19 04:09:23, weidongg wrote: > On 2017/05/19 03:11:46, benwells wrote: > > Have you ...
3 years, 7 months ago (2017-05-19 04:33:11 UTC) #7
stevenjb
On 2017/05/19 04:33:11, benwells wrote: > On 2017/05/19 04:09:23, weidongg wrote: > > On 2017/05/19 ...
3 years, 7 months ago (2017-05-19 16:46:14 UTC) #8
weidongg
On 2017/05/19 16:46:14, stevenjb wrote: > On 2017/05/19 04:33:11, benwells wrote: > > On 2017/05/19 ...
3 years, 7 months ago (2017-05-19 17:09:02 UTC) #9
Mr4D (OOO till 08-26)
lgtm https://codereview.chromium.org/2894743002/diff/20001/ash/shelf/wm_shelf.cc File ash/shelf/wm_shelf.cc (right): https://codereview.chromium.org/2894743002/diff/20001/ash/shelf/wm_shelf.cc#newcode302 ash/shelf/wm_shelf.cc:302: void WmShelf::ActivateShelfItemInDisplay(int item_index, int64_t display_id) { Maybe .. ...
3 years, 7 months ago (2017-05-22 15:02:28 UTC) #14
Mr4D (OOO till 08-26)
lgtm for the ash part that is. Please check comments.
3 years, 7 months ago (2017-05-22 15:02:58 UTC) #15
stevenjb
https://codereview.chromium.org/2894743002/diff/20001/ash/shelf/wm_shelf.h File ash/shelf/wm_shelf.h (right): https://codereview.chromium.org/2894743002/diff/20001/ash/shelf/wm_shelf.h#newcode126 ash/shelf/wm_shelf.h:126: static void ActivateShelfItem(int item_index); Is this still called? Maybe ...
3 years, 7 months ago (2017-05-22 17:55:29 UTC) #16
benwells
There seem to be a lot of failures related to the change.
3 years, 7 months ago (2017-05-23 03:49:46 UTC) #17
weidongg
Sorry for the big change: In patch set 3, I replace the root window in ...
3 years, 7 months ago (2017-05-23 16:37:46 UTC) #18
stevenjb
lgtm https://codereview.chromium.org/2894743002/diff/40001/chrome/browser/ui/browser_finder.cc File chrome/browser/ui/browser_finder.cc (right): https://codereview.chromium.org/2894743002/diff/40001/chrome/browser/ui/browser_finder.cc#newcode99 chrome/browser/ui/browser_finder.cc:99: .id() == display_id; {}
3 years, 7 months ago (2017-05-23 21:56:43 UTC) #23
benwells
c/b/e lgtm. You'll need an owner for browser_finder... https://codereview.chromium.org/2894743002/diff/40001/chrome/browser/ui/extensions/app_launch_params.h File chrome/browser/ui/extensions/app_launch_params.h (right): https://codereview.chromium.org/2894743002/diff/40001/chrome/browser/ui/extensions/app_launch_params.h#newcode78 chrome/browser/ui/extensions/app_launch_params.h:78: // ...
3 years, 7 months ago (2017-05-24 04:05:34 UTC) #24
weidongg
Thanks for the review. pkasting@chromium.org: Please review changes in chrome/browser/ui/browser_finder.* https://codereview.chromium.org/2894743002/diff/40001/chrome/browser/ui/browser_finder.cc File chrome/browser/ui/browser_finder.cc (right): https://codereview.chromium.org/2894743002/diff/40001/chrome/browser/ui/browser_finder.cc#newcode99 ...
3 years, 7 months ago (2017-05-24 17:49:40 UTC) #26
Peter Kasting
Note: I'm behind on codereviews but will try and get to this today (Thursday May ...
3 years, 7 months ago (2017-05-25 07:25:08 UTC) #27
Peter Kasting
LGTM https://codereview.chromium.org/2894743002/diff/60001/chrome/browser/ui/browser_finder.cc File chrome/browser/ui/browser_finder.cc (right): https://codereview.chromium.org/2894743002/diff/60001/chrome/browser/ui/browser_finder.cc#newcode183 chrome/browser/ui/browser_finder.cc:183: display::kInvalidDisplayId); Nit: We could reduce the number of ...
3 years, 7 months ago (2017-05-26 01:25:04 UTC) #28
weidongg
Thanks for the review. https://codereview.chromium.org/2894743002/diff/60001/chrome/browser/ui/browser_finder.cc File chrome/browser/ui/browser_finder.cc (right): https://codereview.chromium.org/2894743002/diff/60001/chrome/browser/ui/browser_finder.cc#newcode183 chrome/browser/ui/browser_finder.cc:183: display::kInvalidDisplayId); On 2017/05/26 01:25:03, Peter ...
3 years, 7 months ago (2017-05-26 02:49:48 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/2894743002/100001
3 years, 7 months ago (2017-05-26 17:35:39 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/224621)
3 years, 7 months ago (2017-05-26 17:38:57 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/2894743002/140001
3 years, 7 months ago (2017-05-26 21:54:29 UTC) #45
commit-bot: I haz the power
3 years, 7 months ago (2017-05-26 22:00:19 UTC) #48
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/07d1c26bd8f426f51c051891d748...

Powered by Google App Engine
This is Rietveld 408576698