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

Issue 1585363002: Fork a subset of ash/shelf for use in mash. (Closed)

Created:
4 years, 11 months ago by msw
Modified:
4 years, 10 months ago
Reviewers:
bungeman-skia, sky
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fork a subset of ash/shelf for use in mash. Fork Shelf View, Model, Button, TooltipManager, etc. These provide a baseline of ash/shelf-like functionality. (show open mash windows, support reordering, tooltips, etc.) Restructure some ownership patterns (eg. shelf owns model). Minimal code refactoring, removal and commenting. (attempt to minimize diff, keep/stub some features) TODO: Restore missing functionality/tests. BUG=557406 TEST=mojo:mash_shell's shelf starts looking more like ash. R=sky@chromium.org,bungeman@google.com Committed: https://crrev.com/16ae0289babd745cf8c54313b42795448c99ebb3 Cr-Commit-Position: refs/heads/master@{#371866}

Patch Set 1 #

Patch Set 2 : Working on it... #

Patch Set 3 : Building... No crashes. #

Patch Set 4 : Working on it... #

Patch Set 5 : Finally painting an app list button... #

Patch Set 6 : Get buttons painting with layers... #

Patch Set 7 : Get support placeholder shelf functionality for mojo app windows. #

Patch Set 8 : Sync and rebase. #

Patch Set 9 : Simplify #

Patch Set 10 : Draggable ShelfButtons; working on tooltips. #

Patch Set 11 : Get tooltips working. #

Patch Set 12 : Latest changes (also copied to ash/shelf for diffing). #

Patch Set 13 : Restore additional code (commented out); add TODOs. #

Patch Set 14 : Revert ash changes. #

Total comments: 10

Patch Set 15 : Address self-review comments and missing ui/accessibility dep. #

Patch Set 16 : Add ui/resources dep; comment out unused constants. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2671 lines, -357 lines) Patch
M mash/shelf/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +17 lines, -0 lines 0 comments Download
A + mash/shelf/DEPS View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M mash/shelf/shelf_application.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -2 lines 0 comments Download
A + mash/shelf/shelf_button.h View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +11 lines, -21 lines 0 comments Download
A + mash/shelf/shelf_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +31 lines, -48 lines 0 comments Download
A + mash/shelf/shelf_button_host.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +34 lines, -7 lines 0 comments Download
A + mash/shelf/shelf_constants.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -12 lines 0 comments Download
A + mash/shelf/shelf_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -3 lines 0 comments Download
A + mash/shelf/shelf_item_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +18 lines, -19 lines 0 comments Download
A mash/shelf/shelf_item_types.cc View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
A + mash/shelf/shelf_model.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +36 lines, -10 lines 0 comments Download
A + mash/shelf/shelf_model.cc View 1 2 3 4 5 6 7 8 5 chunks +52 lines, -8 lines 0 comments Download
A + mash/shelf/shelf_model_observer.h View 1 2 chunks +9 lines, -8 lines 0 comments Download
A + mash/shelf/shelf_tooltip_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +25 lines, -36 lines 0 comments Download
A + mash/shelf/shelf_tooltip_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 chunks +85 lines, -98 lines 0 comments Download
A + mash/shelf/shelf_types.h View 1 2 chunks +7 lines, -5 lines 0 comments Download
M mash/shelf/shelf_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +412 lines, -25 lines 0 comments Download
M mash/shelf/shelf_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1888 lines, -53 lines 0 comments Download

Messages

Total messages: 34 (20 generated)
msw
Hey Scott, please take a look; thanks! Changes to ash/ are just for diffing, they'll ...
4 years, 10 months ago (2016-01-26 21:45:25 UTC) #5
msw
Hey Scott, please take a look now; thanks! The latest patch set restores additional code ...
4 years, 10 months ago (2016-01-27 04:08:49 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/1585363002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585363002/340001
4 years, 10 months ago (2016-01-27 04:57:54 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/139430) linux_chromium_gn_chromeos_rel on ...
4 years, 10 months ago (2016-01-27 05:05:18 UTC) #13
msw
some self review comments... https://codereview.chromium.org/1585363002/diff/340001/mash/shelf/shelf_application.cc File mash/shelf/shelf_application.cc (right): https://codereview.chromium.org/1585363002/diff/340001/mash/shelf/shelf_application.cc#newcode43 mash/shelf/shelf_application.cc:43: widget->SetContentsView(new ShelfView(app)); Add a note ...
4 years, 10 months ago (2016-01-27 07:43:42 UTC) #14
sky
LGTM
4 years, 10 months ago (2016-01-27 17:56:37 UTC) #15
msw
+TBR Ben for mash/shelf dependency on skia.
4 years, 10 months ago (2016-01-27 19:43:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585363002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585363002/360001
4 years, 10 months ago (2016-01-27 19:55:44 UTC) #21
bungeman-skia
lgtm, always good to see someone using Skia. https://codereview.chromium.org/1585363002/diff/340001/mash/shelf/shelf_view.cc File mash/shelf/shelf_view.cc (left): https://codereview.chromium.org/1585363002/diff/340001/mash/shelf/shelf_view.cc#oldcode38 mash/shelf/shelf_view.cc:38: canvas->FillRect(GetLocalBounds(), ...
4 years, 10 months ago (2016-01-27 19:59:48 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/107807) linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 10 months ago (2016-01-27 20:06:41 UTC) #24
msw
https://codereview.chromium.org/1585363002/diff/340001/mash/shelf/shelf_view.cc File mash/shelf/shelf_view.cc (left): https://codereview.chromium.org/1585363002/diff/340001/mash/shelf/shelf_view.cc#oldcode38 mash/shelf/shelf_view.cc:38: canvas->FillRect(GetLocalBounds(), SK_ColorYELLOW); On 2016/01/27 19:59:48, bungeman1 wrote: > Was ...
4 years, 10 months ago (2016-01-27 20:21:50 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585363002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585363002/400001
4 years, 10 months ago (2016-01-27 20:22:46 UTC) #30
commit-bot: I haz the power
Committed patchset #16 (id:400001)
4 years, 10 months ago (2016-01-27 21:07:22 UTC) #32
commit-bot: I haz the power
4 years, 10 months ago (2016-01-27 21:09:48 UTC) #34
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/16ae0289babd745cf8c54313b42795448c99ebb3
Cr-Commit-Position: refs/heads/master@{#371866}

Powered by Google App Engine
This is Rietveld 408576698