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

Issue 2750463009: mash: Fix ShelfItem mojo struct; add enums and traits. (Closed)

Created:
3 years, 9 months ago by msw
Modified:
3 years, 9 months ago
Reviewers:
Tom Sepez, James Cook, sky, reed1
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, rginda+watch_chromium.org, chromium-apps-reviews_chromium.org, kalyank, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Fix ShelfItem mojo struct; add enums and traits. Make ash::mojom::ShelfItem match ash::ShelfItem. Add required type and status enums; traits for all three. Add a unit test for the ShelfItem struct traits. Move ash/common/shelf/shelf_item_types.h to ash/public/cpp/shelf_item.h Define ShelfID as int64_t for cross-platform and mojo type clarity. Header and type usage cleanup. BUG=557406 TEST=NONE; no functional behavior changes. R=jamescook@chromium.org,tsepez@chromium.org TBR=sky@chromium.org,reed@google.com Review-Url: https://codereview.chromium.org/2750463009 Cr-Commit-Position: refs/heads/master@{#457704} Committed: https://chromium.googlesource.com/chromium/src/+/127e697b3d265b427a83a9e82cb5fcc2ef12d395

Patch Set 1 #

Patch Set 2 : Sync and rebase. #

Total comments: 16

Patch Set 3 : working on it... #

Patch Set 4 : Address comments; try adding a unit test. #

Total comments: 4

Patch Set 5 : Address comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -305 lines) Patch
M ash/BUILD.gn View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/shelf/app_list_shelf_item_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_controller.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
D ash/common/shelf/shelf_item_types.h View 1 chunk +0 lines, -53 lines 0 comments Download
D ash/common/shelf/shelf_item_types.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M ash/common/shelf/shelf_model.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_model.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_model_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_window_watcher.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/shelf_window_watcher_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/test/test_shelf_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/wm_window.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ash/metrics/user_metrics_recorder.cc View 2 chunks +1 line, -1 line 0 comments Download
M ash/mus/shelf_delegate_mus.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/public/cpp/BUILD.gn View 1 2 3 2 chunks +23 lines, -1 line 0 comments Download
A ash/public/cpp/DEPS View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A ash/public/cpp/OWNERS View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A + ash/public/cpp/shelf_item.h View 2 chunks +5 lines, -7 lines 0 comments Download
A + ash/public/cpp/shelf_item.cc View 1 chunk +1 line, -1 line 0 comments Download
A + ash/public/cpp/shelf_struct_traits.h View 1 2 3 4 3 chunks +116 lines, -4 lines 0 comments Download
A ash/public/cpp/shelf_struct_traits.cc View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A ash/public/cpp/shelf_struct_traits_unittest.cc View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
M ash/public/cpp/shelf_types.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ash/public/interfaces/shelf.mojom View 2 chunks +35 lines, -12 lines 0 comments Download
M ash/public/interfaces/shelf.typemap View 1 2 1 chunk +15 lines, -2 lines 0 comments Download
M ash/public/interfaces/shelf_struct_traits.h View 1 2 1 chunk +0 lines, -163 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 4 chunks +9 lines, -8 lines 0 comments Download
M ash/shell/window_watcher.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/window_watcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/shell/window_watcher_shelf_item_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/test/shelf_view_test_api.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/window_properties.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_launcher_context_menu.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/browser_status_monitor.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/multi_profile_browser_status_monitor.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/settings_window_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/task_manager_view.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (23 generated)
msw
Hey James, please take a look; thanks! Hey Tom, please review ash/public/interfaces/ for OWNERS; thanks!
3 years, 9 months ago (2017-03-16 01:44:16 UTC) #9
James Cook
I like it. https://codereview.chromium.org/2750463009/diff/20001/ash/public/cpp/BUILD.gn File ash/public/cpp/BUILD.gn (right): https://codereview.chromium.org/2750463009/diff/20001/ash/public/cpp/BUILD.gn#newcode29 ash/public/cpp/BUILD.gn:29: "//ui/gfx", Should this be public_deps, since ...
3 years, 9 months ago (2017-03-16 16:48:51 UTC) #10
Tom Sepez
Otherwise LGTM https://codereview.chromium.org/2750463009/diff/20001/ash/public/interfaces/shelf_struct_traits.cc File ash/public/interfaces/shelf_struct_traits.cc (right): https://codereview.chromium.org/2750463009/diff/20001/ash/public/interfaces/shelf_struct_traits.cc#newcode77 ash/public/interfaces/shelf_struct_traits.cc:77: out->image = gfx::ImageSkia::CreateFrom1xBitmap(image); Can this fail?
3 years, 9 months ago (2017-03-16 17:59:26 UTC) #11
msw
Please take another look; thanks! I addressed comments, added a unit test, moved struct_traits files ...
3 years, 9 months ago (2017-03-16 23:15:50 UTC) #15
James Cook
LGTM with one question/nit https://codereview.chromium.org/2750463009/diff/60001/ash/public/cpp/shelf_struct_traits.h File ash/public/cpp/shelf_struct_traits.h (right): https://codereview.chromium.org/2750463009/diff/60001/ash/public/cpp/shelf_struct_traits.h#newcode259 ash/public/cpp/shelf_struct_traits.h:259: static int64_t shelf_id(const ash::ShelfItem& i) ...
3 years, 9 months ago (2017-03-17 02:32:29 UTC) #18
msw
Comments addressed; landing. https://codereview.chromium.org/2750463009/diff/60001/ash/public/cpp/shelf_struct_traits.h File ash/public/cpp/shelf_struct_traits.h (right): https://codereview.chromium.org/2750463009/diff/60001/ash/public/cpp/shelf_struct_traits.h#newcode259 ash/public/cpp/shelf_struct_traits.h:259: static int64_t shelf_id(const ash::ShelfItem& i) { ...
3 years, 9 months ago (2017-03-17 05:35:20 UTC) #19
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/2750463009/80001
3 years, 9 months ago (2017-03-17 05:35:47 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/387933)
3 years, 9 months ago (2017-03-17 05:49:43 UTC) #24
msw
+TBR owners for 'new' ash/public/cpp/DEPS: Scott: +mojo/common Mike: +skia/public/interfaces
3 years, 9 months ago (2017-03-17 06:47:49 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/2750463009/80001
3 years, 9 months ago (2017-03-17 06:48:17 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/127e697b3d265b427a83a9e82cb5fcc2ef12d395
3 years, 9 months ago (2017-03-17 06:54:51 UTC) #34
sky
3 years, 9 months ago (2017-03-17 15:16:07 UTC) #35
Message was sent while issue was closed.
deps LGTM

Powered by Google App Engine
This is Rietveld 408576698