Support struct as key of map in mojom |
||||||||||
Issue descriptionCurrently mojom map<K,V> only supports K as string or a numeric type. But during chromium IPC mojofication, we may encounter some maps whose key types are some user-defined structs. This issue is to track the work to support struct as key of mojom map.
,
Aug 15 2016
,
Aug 15 2016
Leon, are you working on this? Otherwise I might have some free cycles.
,
Aug 16 2016
OK, Thanks Johan a lot for the help. Actually I tried to investigate around but have no clear idea yet.. Let me study how you would do, thanks ;-)
,
Aug 16 2016
,
Sep 12 2016
It would be great to have some examples of where this might be needed. I only find https://cs.chromium.org/chromium/src/components/autofill/content/public/interfaces/autofill_types.mojom?l=196 and from a casual look at the code that uses this map a vector of pairs would be fine, because there's no lookup. I also suspect this example might not be the best one for using a map in Mojo as the key type is *huge* and probably really inefficient to hash, compare for equality, and copy.
,
Sep 13 2016
,
Oct 23 2016
This is now done for C++ and Java. Since JS maps uses object identity for keys the best we can do is support sending data as maps, but the only thing users can do with those maps is iterate over them.
,
Apr 11 2017
,
Jun 21 2017
,
Jun 21 2017
,
Nov 10 2017
,
Jan 2 2018
,
Jan 3
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jan 8
JS support is not practical, and C++/Java support was implemented. |
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by leon....@intel.com
, Jul 14 2016