DescriptionMake 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. #Messages
Total messages: 48 (26 generated)
|