Commit Graph
12 Commits
Author SHA1 Message Date
Tim van der Lippe ce07bcffcf Migrate MultiMap to map-utilities
R=jacktfranklin@chromium.org

Bug: 1050549
Change-Id: I86b0218408ff3a8bf35e9a86fe3f68adfe9821bb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2631120
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-01-21 11:26:34 +00:00
Paul Lewis 4bb8c9eca1 TypeScriptify webaudio/graph_visualizer
Bug: chromium:1011811
Change-Id: Ie18a64b6cdf84e3d53e594cd88f7c4431d9c78f6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2450294
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
2020-10-06 11:49:47 +00:00
Jan Scheffler 450b1651fc Migrate front_end/web_audio to devtools_entrypoint
Bug: 1101738
Change-Id: I68733ba951f4fba8fe1eee4832d06a884016ec33
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2328861
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-08-03 16:38:18 +00:00
Tim van der Lippe 0c7b4d2bb8 Fix incorrect imports caught by ESLint rule
We will be turning on an ESLint rule that catches bad imports. These
imports were caught by the checker and have been corrected to use the
correct format.

Bug: 1060123
Change-Id: I4ee0dbc5de2245cf738dc0618e9cd2f5e103adcf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2096699
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-03-10 17:25:33 +00:00
Mathias Bynens 23ee1aad0a Reconfigure lint rule w.r.t. quotes
We prefer single quotes by default, but still want to allow double
quotes in cases where that helps avoid quote-escaping, and also want
to allow template literals in cases where string interpolation is
used. For example:

    const a = 'xxx';  // ok
    const b = "xxx";  // not ok, should use single quotes
    const c = "xxx'xxx";  // ok, double quotes avoid an escape sequence
    const d = `xxx`;  // not ok, frivolous use of template literal
    const e = `xxx ${42}`;  // ok

Per https://github.com/eslint/eslint/issues/12976, setting
the `allowTemplateLiterals` option for the `quotes` lint rule to
`false` gives us the desired behavior.

Note that the above lint rules are auto-fixed when running the linter;
there should be no need to manually make any changes to appease the
linter.

Per review feedback, this patch also removes the following escape
sequences for printable non-ASCII symbols:

- U+00D7 → ×
- U+2026 → …
- U+2019 → ’

Chromium CL temporarily updating test expectations:
https://chromium-review.googlesource.com/c/chromium/src/+/2083147

Cq-Depend: chromium:2083147
Bug: chromium:1057042
Change-Id: Id6bec3f96ca694d2fbc07dd8629fce305a58df8a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2082372
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Mathias Bynens <mathias@chromium.org>
2020-03-02 16:18:16 +00:00
Tim van der Lippe 633c246303 Remove typedefs from web_audio-legacy.js
Bug: 1006759
Change-Id: I5a4ff67ce1d48ac99380f9af10b31c026e823ec4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2056845
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2020-02-18 12:44:56 +00:00
Hongchan Choi 0927e70a01 Clean up after ESM migration of front_end/web_audio
This CL cleans up some residues of internal dependencies
in front_end/web_audio. (e.g. shortening global variables to local,
adding proper import {} syntax)

Bug: 1040646
Change-Id: I567f7e8dc32369f855e4cac3130e24b674bd0eca
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2001229
Commit-Queue: Hongchan Choi <hongchan@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-01-15 20:33:13 +00:00
Hongchan Choi a0840e9a2f Migrate webaudio/ to ESM internally
This moves the side-effects to elements-legacy.js (which is lazily
loaded by the Runtime) and resolves all internal references using
ES-imports.

Bug: 1040646, 1006759
Change-Id: If3717c648638924ef437cb82e51cd35d458d6c5f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1997727
Commit-Queue: Hongchan Choi <hongchan@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-01-14 19:22:46 +00:00
Paul Lewis 2766f08a61 Migrates web_audio/ to esm
Bug: 1006759
Change-Id: Ie992082cac612909370bdf1438ad5dfbe8930d66
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1940236
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2019-11-28 13:59:23 +00:00
Tim van der Lippe e3595942b0 Migrate platform/ to ESM
- Change Multimap to Platform.Multimap
- Importscripts in workers. This means that the file does not export any
utilities, but we will need to clean that up later.

Bug: 1006759
Change-Id: I91d45febebfc597f0d0b5c6a017c26f6b12b84b4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1832218
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#702111}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: d704d799ac695e03ef367102c2a870e4a5f239e9
2019-10-02 18:15:32 +00:00
Tim van der Lippe 1d6e57a0e3 Always add braces to single-line if-statements
The Chromium/Google style guides does not enforce curly braces for
single-line if-statements, but does strongly recommend doing so. Adding
braces will improve code readability, by visually separating code
blocks. This will also prevent issues where accidental additions are
pushed to the "else"-clause instead of in the if-block.

This CL also updates the presubmit `eslint` to run the fix with the
correct configuration. It will now fix all issues it can fix.

Change-Id: I4b616f21a99393f168dec743c0bcbdc7f5db04a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1821526
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Jeff Fisher <jeffish@microsoft.com>
Cr-Original-Commit-Position: refs/heads/master@{#701070}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7e0bdbe2d7f9fc2386bfaefda3cc29c66ccc18f9
2019-09-30 11:55:34 +00:00
Gaoping Huang a471b30a08 [WebAudio DevTools] Add the model of the graph visualizer
This CL contains the graph model that tracks the events fired from
WebAudio backend. A follow-up CL will be uploaded soon to use `dagre`
to layout the graph model.

A relevant CL is uploaded to add `dagre` as a front_end module:
https://chromium-review.googlesource.com/c/chromium/src/+/1749643

Bug: 974343
Change-Id: Ie276e593e3b35c12d898677993c994256fc0df41
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1753704
Reviewed-by: Raymond Toy <rtoy@chromium.org>
Reviewed-by: Hongchan Choi <hongchan@chromium.org>
Reviewed-by: Erik Luo <luoe@chromium.org>
Commit-Queue: Hongchan Choi <hongchan@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#689961}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: ef630c37abdcc7ee52508aa825455d815511466e
2019-08-23 16:48:29 +00:00