Descriptionmash: 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. #Messages
Total messages: 37 (27 generated)
|