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

Issue 2878133002: mash: Serialize ShelfIDs for property conversion and transport. (Closed)

Created:
3 years, 7 months ago by msw
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), extensions-reviews_chromium.org, kalyank, qsr+mojo_chromium.org, rjkroege, sadrul, tfarina, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Serialize ShelfIDs for property conversion and transport. Mus window properties require conversion to byte arrays. ShelfID, a string pair struct, cannot be converted directly. Instead, serialize ShelfIDs for use as window properties. This fixes mash shelf item population via ShelfWindowWatcher. Register the property in ChromeBrowserMainExtraPartsAsh. Also add support for temporary ShelfID assignment in mash. (so ShelfWindowWatcher will handle all non-ignored windows) Also add support for duplicate ShelfIDs in mash. (ShelfWindowWatcher[ItemDelegate] doesn't coalesce windows) Make ShelfID ctor explicit. Cleanup some WmWindow usage. TODO: Fix PropertyConverter::RegisterProperty function names. BUG=557406 TEST=Automated; mash shelf items appear; no ChromeOS shelf changes. R=jamescook@chromium.org TBR=sky@chromium.org,tsepez@chromium.org,reveman@chromium.org Review-Url: https://codereview.chromium.org/2878133002 Cr-Commit-Position: refs/heads/master@{#471935} Committed: https://chromium.googlesource.com/chromium/src/+/6958e7f12dc01b1e7412d12c5e0b40ca94c3d663

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Make ShelfID's ctor explicit; fix test helper function; nix redundant string property decl. #

Patch Set 4 : Remove |user_windows_with_items_| entries in workaround; disable a test in mash. #

Total comments: 24

Patch Set 5 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -127 lines) Patch
M ash/mus/window_manager.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ash/mus_property_mirror_ash_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ash/public/cpp/shelf_types.h View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M ash/public/cpp/shelf_types.cc View 1 2 3 4 2 chunks +24 lines, -0 lines 0 comments Download
M ash/public/cpp/window_properties.h View 3 chunks +4 lines, -4 lines 0 comments Download
M ash/public/cpp/window_properties.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M ash/shelf/shelf_model.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shelf/shelf_widget.cc View 1 chunk +9 lines, -7 lines 0 comments Download
M ash/shelf/shelf_window_watcher.cc View 1 2 3 4 8 chunks +53 lines, -15 lines 0 comments Download
M ash/shelf/shelf_window_watcher_unittest.cc View 1 2 3 4 12 chunks +50 lines, -58 lines 0 comments Download
M ash/shell/window_watcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ash/wm/panels/panel_layout_manager_unittest.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M ash/wm/panels/panel_window_resizer_unittest.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 2 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/settings_window_observer.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/task_manager_view.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/exo/shell_surface.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/mus/property_converter.h View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 37 (27 generated)
msw
Hey James, please take a look; thanks!
3 years, 7 months ago (2017-05-13 02:55:34 UTC) #16
James Cook
LGTM with nits. Lemme know if you want me to look again. https://codereview.chromium.org/2878133002/diff/60001/ash/public/cpp/shelf_types.cc File ash/public/cpp/shelf_types.cc ...
3 years, 7 months ago (2017-05-15 16:37:24 UTC) #19
msw
Comments addressed; landing. https://codereview.chromium.org/2878133002/diff/60001/ash/public/cpp/shelf_types.cc File ash/public/cpp/shelf_types.cc (right): https://codereview.chromium.org/2878133002/diff/60001/ash/public/cpp/shelf_types.cc#newcode15 ash/public/cpp/shelf_types.cc:15: constexpr char kDelimiter[] = {'|', 0}; ...
3 years, 7 months ago (2017-05-15 19:21:32 UTC) #20
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/2878133002/80001
3 years, 7 months ago (2017-05-15 19:22:49 UTC) #23
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/437277)
3 years, 7 months ago (2017-05-15 19:51:12 UTC) #25
msw
+TBR owners for some trivial changes: sky@chromium.org: comments in property_converter.h tsepez@chromium.org: comment in window_manager.mojom reveman@chromium.org: ...
3 years, 7 months ago (2017-05-15 20:40:40 UTC) #30
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/2878133002/80001
3 years, 7 months ago (2017-05-15 20:41:31 UTC) #32
sky
LGTM
3 years, 7 months ago (2017-05-15 21:34:39 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/6958e7f12dc01b1e7412d12c5e0b40ca94c3d663
3 years, 7 months ago (2017-05-15 22:55:24 UTC) #36
reveman
3 years, 7 months ago (2017-05-16 04:00:37 UTC) #37
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698