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

Issue 1839223003: Add basic Chrome interaction with the mash shelf. (Closed)

Created:
4 years, 8 months ago by msw
Modified:
4 years, 8 months ago
Reviewers:
sky, tomhudson
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add basic Chrome interaction with the mash shelf. Based on the "Mash Shelf Interface Proposal" doc: https://docs.google.com/document/d/1FSSAxodmRbaeiHI2H-2WNfbVXPLHLcTbcThvln0bKNw Add shelf.mojom with necessary interfaces and structs. Make ShelfDelegateMus implement mash::shelf::mojom::Shelf. Make SysUIApplication (mojo:ash_sysui) vend Shelf interfaces. Init mash from ChromeBrowserMainExtraPartsAsh::PostProfileInit. Add a test shortcut item to a fake application from Chrome. Store local chrome prefs when mash shelf properties change. Include required pref-related consts/files in USE_AURA. Extract IsRunningInMash helper function. Extract launcher preference conversion helper functions. Depends on https://codereview.chromium.org/1872903003 TODO: Support multiple displays with a shelf per display. TODO: Support complex prefs in ChromeMashShelfController. TODO: Link up user window and pinned shelf items. TODO: Add more NOTIMPLEMENTED() functionality... BUG=557406 TEST=Mash shelf has a new test item, stores prefs locally. R=sky@chromium.org,jamescook@chromium.org,tomhudson@google.com Committed: https://crrev.com/f79017e9addd1ab792ac9eec4136c0e7f1ef1848 Cr-Commit-Position: refs/heads/master@{#386476}

Patch Set 1 #

Patch Set 2 : Hook up paths for chrome init of mash shelf. #

Patch Set 3 : Get a test item pinned. #

Patch Set 4 : Working on loading and saving preferences. #

Patch Set 5 : Sync and rebase. #

Patch Set 6 : Cleanup; add shelf pref conversion helper functions. #

Patch Set 7 : Define ash pref names if USE_AURA, not just if USE_ASH. #

Patch Set 8 : Move chrome_launcher_prefs from ash to aura. #

Total comments: 18

Patch Set 9 : Use associated interfaces for observers and item delegates. #

Total comments: 9

Patch Set 10 : Address comments; sync and rebase; sorry! #

Patch Set 11 : Update after rebase. #

Patch Set 12 : Leave +skia/public in chrome/browser/DEPS #

Patch Set 13 : Sync and rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+485 lines, -90 lines) Patch
M ash/mus/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M ash/mus/DEPS View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ash/mus/shelf_delegate_mus.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +18 lines, -0 lines 0 comments Download
M ash/mus/shelf_delegate_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +88 lines, -18 lines 0 comments Download
M ash/mus/sysui_application.h View 1 2 3 4 5 6 7 8 9 3 chunks +13 lines, -1 line 0 comments Download
M ash/mus/sysui_application.cc View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/DEPS View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/ash_init.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/ash_init.cc View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/ash_util.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/ash_util.cc View 1 1 chunk +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 2 3 4 5 6 7 8 9 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -51 lines 0 comments Download
A chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.h View 1 2 3 4 5 6 7 8 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +116 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 1 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -3 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
A + mash/shelf/public/interfaces/BUILD.gn View 1 chunk +2 lines, -2 lines 0 comments Download
A mash/shelf/public/interfaces/shelf.mojom View 1 2 3 4 5 6 7 8 9 1 chunk +74 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (38 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839223003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839223003/160001
4 years, 8 months ago (2016-04-05 21:35:20 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/164891)
4 years, 8 months ago (2016-04-05 21:51:17 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839223003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839223003/180001
4 years, 8 months ago (2016-04-05 22:08:00 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/164910)
4 years, 8 months ago (2016-04-05 22:24:36 UTC) #13
msw
Hey Scott, please take a look; thanks!
4 years, 8 months ago (2016-04-05 23:27:11 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839223003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839223003/200001
4 years, 8 months ago (2016-04-05 23:27:26 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/164957)
4 years, 8 months ago (2016-04-05 23:42:08 UTC) #19
sky
https://codereview.chromium.org/1839223003/diff/200001/mash/shelf/public/interfaces/shelf.mojom File mash/shelf/public/interfaces/shelf.mojom (right): https://codereview.chromium.org/1839223003/diff/200001/mash/shelf/public/interfaces/shelf.mojom#newcode21 mash/shelf/public/interfaces/shelf.mojom:21: interface ShelfObserver { When the observer is added seems ...
4 years, 8 months ago (2016-04-06 02:57:45 UTC) #20
James Cook
Mike, if you'd like me to refrain from drive-by's, or if you'd prefer me to ...
4 years, 8 months ago (2016-04-06 04:29:52 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839223003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839223003/240001
4 years, 8 months ago (2016-04-07 20:33:36 UTC) #27
msw
Please take another look; thanks! James, your review is greatly appreciated; drive-by or not, I'll ...
4 years, 8 months ago (2016-04-07 20:34:58 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/165988)
4 years, 8 months ago (2016-04-07 20:51:37 UTC) #30
sky
https://codereview.chromium.org/1839223003/diff/200001/mash/shelf/public/interfaces/shelf.mojom File mash/shelf/public/interfaces/shelf.mojom (right): https://codereview.chromium.org/1839223003/diff/200001/mash/shelf/public/interfaces/shelf.mojom#newcode21 mash/shelf/public/interfaces/shelf.mojom:21: interface ShelfObserver { On 2016/04/07 20:34:57, msw wrote: > ...
4 years, 8 months ago (2016-04-07 22:02:46 UTC) #31
msw
Please take another look; thanks! https://codereview.chromium.org/1839223003/diff/240001/ash/mus/shelf_delegate_mus.cc File ash/mus/shelf_delegate_mus.cc (right): https://codereview.chromium.org/1839223003/diff/240001/ash/mus/shelf_delegate_mus.cc#newcode45 ash/mus/shelf_delegate_mus.cc:45: void set_window_id(uint32_t window_id) { ...
4 years, 8 months ago (2016-04-08 21:20:48 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839223003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839223003/260001
4 years, 8 months ago (2016-04-08 21:21:08 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/166606)
4 years, 8 months ago (2016-04-08 21:32:29 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839223003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839223003/280001
4 years, 8 months ago (2016-04-08 21:52:24 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/166626)
4 years, 8 months ago (2016-04-08 22:03:10 UTC) #41
sky
LGTM https://codereview.chromium.org/1839223003/diff/240001/ash/mus/shelf_delegate_mus.cc File ash/mus/shelf_delegate_mus.cc (right): https://codereview.chromium.org/1839223003/diff/240001/ash/mus/shelf_delegate_mus.cc#newcode191 ash/mus/shelf_delegate_mus.cc:191: Shelf* shelf = Shelf::ForPrimaryDisplay(); On 2016/04/08 21:20:48, msw ...
4 years, 8 months ago (2016-04-08 23:08:24 UTC) #42
msw
+TBR tomhudson for new users of skia/public[/interfaces].
4 years, 8 months ago (2016-04-08 23:28:15 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839223003/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839223003/300001
4 years, 8 months ago (2016-04-11 18:08:20 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/51655) linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 8 months ago (2016-04-11 18:11:18 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839223003/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839223003/320001
4 years, 8 months ago (2016-04-11 18:11:40 UTC) #54
commit-bot: I haz the power
Failed to apply patch for ash/mus/BUILD.gn: While running git apply --index -3 -p1; error: patch ...
4 years, 8 months ago (2016-04-11 19:15:09 UTC) #56
tomhudson
+skia/public/ MOJOM LGTM. At some time in the next couple of quarters we may push ...
4 years, 8 months ago (2016-04-11 19:19:50 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839223003/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839223003/340001
4 years, 8 months ago (2016-04-11 19:30:10 UTC) #62
commit-bot: I haz the power
Committed patchset #13 (id:340001)
4 years, 8 months ago (2016-04-11 21:18:04 UTC) #64
commit-bot: I haz the power
4 years, 8 months ago (2016-04-11 21:18:59 UTC) #66
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/f79017e9addd1ab792ac9eec4136c0e7f1ef1848
Cr-Commit-Position: refs/heads/master@{#386476}

Powered by Google App Engine
This is Rietveld 408576698