Commit Graph
22 Commits
Author SHA1 Message Date
Andres Olivares 11d439730a [module.json extensions] @UI.Renderer
Bug: 1134103
Change-Id: I0b78854156c640d4bac87af262ec7849099dc076
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2687697
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-12 21:41:17 +00:00
Andres Olivares 01e6744ef5 [module.json extensions] @UI.ToolbarItem.Provider Part 1
Bug: 1134103
Change-Id: Iff3b1afc0db51e7c888f5260059bb1a882e7b77f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2684119
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-10 18:22:06 +00:00
Andres Olivares d8fc7948c5 [module.json extensions] source_frame
Bug: 1134103
Change-Id: Ifede39c0db9b44e8df2ae312d38e00bfdf80b2cf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2658340
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-02 17:01:59 +00:00
Andres Olivares 68352ee6ec [module.json extensions] sdk part 1
Bug: 1134103
Change-Id: Ie8c685e0cb8b008b423670363b0eed13be3b2743
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2656126
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-02 12:57:28 +00:00
Andres Olivares 5b554899c9 [module.json extensions] quick_open actions
Bug: 1134103
Change-Id: Ib46790b15c646cc81f25f6afe92a395767b04c3c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2656124
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-02 00:16:28 +00:00
Andres Olivares 27dccc07f8 [module.json extensions] perf_ui
Bug: 1134103
Change-Id: I61ecd89c7bc702b4fafefa4cdc706ab3dddd4d3d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2656122
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-02-01 13:56:44 +00:00
Andres Olivares 9bddd7c7e3 Reland "[module.json extensions] main actions"
This reverts commit ea8207eab3.

Reason for revert: Patching a fix that copes with the compile failure so that the CL can land.

Original change's description:
> Revert "[module.json extensions] main actions"
>
> This reverts commit bf954f5a0f.
>
> Reason for revert: This CL is causing compile failures.
>
> Original change's description:
> > [module.json extensions] main actions
> >
> > Bug: 1134103
> > Change-Id: I998a10d8364df6d9a4634fdfcc509ce306620475
> > Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2653066
> > Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
> > Commit-Queue: Andres Olivares <andoli@chromium.org>
>
> TBR=tvanderlippe@chromium.org,andoli@chromium.org
>
> Change-Id: I322e7613e850524f8f4b8d4bf3bd816e453a70d8
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 1134103
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2658337
> Reviewed-by: Andres Olivares <andoli@chromium.org>
> Commit-Queue: Andres Olivares <andoli@chromium.org>

TBR=tvanderlippe@chromium.org,andoli@chromium.org

Bug: 1134103
Change-Id: I1c1916747e7c259712799fbf4ad21b695180b26c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2658343
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2021-01-29 21:35:21 +00:00
Andres Olivares ea8207eab3 Revert "[module.json extensions] main actions"
This reverts commit bf954f5a0f.

Reason for revert: This CL is causing compile failures.

Original change's description:
> [module.json extensions] main actions
>
> Bug: 1134103
> Change-Id: I998a10d8364df6d9a4634fdfcc509ce306620475
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2653066
> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
> Commit-Queue: Andres Olivares <andoli@chromium.org>

TBR=tvanderlippe@chromium.org,andoli@chromium.org

Change-Id: I322e7613e850524f8f4b8d4bf3bd816e453a70d8
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1134103
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2658337
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2021-01-29 13:40:55 +00:00
Andres Olivares bf954f5a0f [module.json extensions] main actions
Bug: 1134103
Change-Id: I998a10d8364df6d9a4634fdfcc509ce306620475
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2653066
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2021-01-29 13:19:46 +00:00
Andres Olivares 28eaf8cbb2 [module.json extensions] browser_sdk
Bug: 1134103
Change-Id: I6a420f6d1bf14b128d409468bfa50b7192e42d3e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2643651
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-26 13:11:19 +00:00
Andres Olivares e1d9694cbb [module.json extensions] persistence views
Bug: 1134103
Change-Id: I9943a8ad860817c6053569665931e928c4a74d43
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2638017
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-21 16:49:48 +00:00
Andres Olivares 44820b003b [module.json extensions] protocol_monitor
Bug: 1134103
Change-Id: Ie645e11becace9dc740e21ec00fe21a671626a74
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2638018
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-21 16:16:08 +00:00
Andres Olivares e0ac3adae4 [module.json extensions] settings views
Bug: 1134103
Change-Id: Ie9bfc8ddc4747fdf810a5848a75e44be2d85fc38
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2638019
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-21 14:37:58 +00:00
Andres Olivares ba24df0ed5 [module.json extensions] linear_memory_inspector
Bug: 1134103
Change-Id: I3e0064e3da93d99857358af7860e82b6fa84ebce
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2631961
Commit-Queue: Andres Olivares <andoli@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-19 14:18:57 +00:00
Andres Olivares f125cbd2cc [module.json extensions] input views
Bug: 1134103
Change-Id: Ia9ea0ccad3064a3c80a9902206a4b977b908df86
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2629729
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-15 14:33:00 +00:00
Tim van der Lippe 2f1ea1c2ca [module.json extensions] changes
R=andoli@chromium.org

Bug: 1134103
Change-Id: Ic2d249ae33f7e291ff7bdf921e35c92d8f5649ad
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2612853
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2021-01-13 10:55:43 +00:00
Tim van der Lippe a71272ea25 [module.json extensions] coverage
R=andoli@chromium.org

Bug: 1134103
Change-Id: Iefcbb03583eaeb7d008abb0d4cbce7256747a149
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2612857
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2021-01-12 15:38:31 +00:00
Tim van der Lippe 413e363c0d [module.json extensions] console
R=andoli@chromium.org

Bug: 1134103
Change-Id: If5b847276297ee1f8a37b6adf01816f430cdfc02
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2589955
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2021-01-05 12:26:49 +00:00
Andres Olivares 8b204e1e02 Change sources and profiler meta files imports to shell.js
'sources' and 'profiler' are delcared as modules of the 'shell' app
instead of 'devtools_app', thus the side effect imports of their meta
files must be located in shell.js not in devtools_app.js.

This CL corrects the location of these imports as their misplacement
prevents the appropiate loading of the dependencies of the 'shell' app.

Fixed: 1159888
Change-Id: I441149b657d86be4587c22843c7836be2f578e92
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2599754
Auto-Submit: Andres Olivares <andoli@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
2020-12-21 15:53:26 +00:00
Tim van der Lippe 3387bd4064 Move startup files to GN
There previously were two special files that were handled
by `build_release_applications`: root.js and RuntimeInstantiator.js.
Both files are explicitly part of the startup process of DevTools
and its various entrypoints.

To remove the copying from `build_release_applications`, we have
to move these to the relevant `devtools_entrypoint`. Since a
`devtools_entrypoints` bundles all subdirectories, we can't keep
these files in `front_end/` directly. Instead, we move these files
to `startup/` to denote their special-casing in the startup process.

Next to that, we have to fix all usages of these files in the entrypoints.
For all JavaScript entrypoint files, all side-effect legacy files
that are loaded by `startup.js` (previously known as `root.js` and renamed
to prevent confusion with the `root/` module) are removed. All
"additional" legacy files that a particular entrypoint requires are
still loaded as-is.

The RuntimeInstantiator is moved to become an implementation detail
of `startup/`. Therefore, all of the usages that were previously
importing from `RuntimeInstantiator` now import via `startup.js`.

In the end, the special-casing of these files are removed and renamed
for clarity. In the future, we want to remove the complicated
entrypoints startup process, but we are not ready for that yet.
That will require additional cleanups with `resources` in `module.json`
before that change can happen.

R=aerotwist@chromium.org

Bug: 1131500
Change-Id: I198d5a62d2aab70f842c68d9b4c0871fde1587a4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2485072
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-10-20 12:55:34 +00:00
Tim van der Lippe 6d51bf00ea Factor out Runtime to root/Runtime.js
front_end/Runtime.js was doing multiple things: it was instantiating
side-effecty descriptors and initializing applications, as well as
storing all state for the modules/extensions, etc...

To support proper ES Modules, we need to separate these. root/Runtime.js
contains simple classes that store the data and can be retrieved, as well
as some helper functions that will load the respective data.

The RuntimeInstantiator.js code includes the start functions used in the
entrypoints themselves. They will use an instance of the Runtime to
properly load the application.

Along the way, I also fixed various TypeScript errors, mostly around
incorrect or missing type definitions.

R=aerotwist@chromium.org,jacktfranklin@chromium.org

Bug: 1011811
Change-Id: If3ddea9267813691b3faeb6ea4b0cf64edbde1f4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107523
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-03-18 12:19:29 +00:00
Tim van der Lippe e894e9c586 Stop rewriting html entrypoints
This adds the necessary ES imports to the various entrypoints to
properly load their dependencies. This means that we can stop rewriting
the HTML entrypoints and simply copy them over to the build directory.

Bug: 1046596
Change-Id: If1182ed051a22cc2bb0c77456456ab039f63cec2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2035791
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
2020-03-04 17:19:45 +00:00