[Extensions] Convert activity args in the stream to a list

This CL displays the list of arguments used for the activity's API call
in an ordered list instead of a whole JSON string. This improves
readability and achieves feature parity with the Chrome Apps &
Extensions Developer Tool (aka Platform App.)

This CL also replaces all "<arg_url>" placeholders with the activity's
specified argUrl in the same fashion as the Platform App.

To ensure that the expanded arguments list is not too long, only the
first "level" of the arguments array is parsed into the list. Nested
objects/arrays are kept as strings.

Known issues:
The UI still looks janky when a nested object is large as it can take
up many lines. The Platform App deals with this by stretching it out to
1 line, which... has its own problems.

One way to address this would be to add a "see more" button/prompt and
only show a part of the nested object initially.

Screenshot: crbug.com/932768#c7

Bug: 932768
Change-Id: I51276196d09d463126aff6471c7e51d6064c2e4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1497326
Commit-Queue: Kelvin Jiang <kelvinjiang@chromium.org>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#640584}
7 files changed