Commit Graph
12 Commits
Author SHA1 Message Date
Tim van der Lippe d7cfd14814 Fix no-implicit-coercion errors in front_end/
R=jacktfranklin@chromium.org

No-Presubmit: True
Bug: 1082789
Change-Id: Ic77884bf7e9b5dc74053915b3b10699368841b66
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2595268
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-01-07 12:40:16 +00:00
Jack Franklin e2fe0e4a4b [Dark Mode]: migrate CSS files with no colors
This CL batches up changes to multiple CSS files where they had either
no colors to change, or one very easy color to change.

Bug: 1152736
Change-Id: I061ebd909539dfaca7e8c3a70b0e97f0a0ba5f07
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2567115
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-12-01 15:59:15 +00:00
Tim van der Lippe 70842f313f Replace title property setter with Tooltip install invocation
ui/Tooltip.js overrides the HTMLElement prototype to override the
title property. Rather than using this property, we shoul be
calling Tooltip.install directly. This makes sure that new
components are not relying on the behavior of the legacy
prototype patching.

These usages have been manually audited using the following regexes:

Search: ([\S]+)\.title = ([^;]+);
Replace: UI.Tooltip.Tooltip.install($1, $2);

Note that there are classes in DevTools that also have a title
property. Most notably `TreeElement`. We should not be replacing
these, as they do not inherit from HTMLElement. Luckily, we are
running TypeScript to make sure we don't call `Tooltip.install`
with a non-HTMLElement.

A follow-up CL will clean up the getters.

R=jacktfranklin@chromium.org

Bug: 1150762
No-presubmit: True
Change-Id: I5928e75c70293531849e0576f4fb2a2a8b3e02d2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2555060
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-11-23 17:16:46 +00:00
Kalon Hinds 361d02972a [Loc] Migrate developer_resources to Localization V2
Bug: 1136655
Change-Id: I01278b1c215dd7efa7255223a520df3524c53897
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2552105
Commit-Queue: Kalon Hinds <kahinds@microsoft.com>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
2020-11-20 19:47:24 +00:00
Jack Franklin 71519f8efb Introduce enableLegacyPatching flag for CSS patching
As part of the dark mode migration we are adding
`enableLegacyPatching:true` to all call sites of `appendStyle` (and
related methods). If a user passes `false` for that flag, no CSS colour
patching will occur.

This CL is therefore a no-op from a user's perspective as we pass `true`
on every call to maintain existing behaviour, but once we start
migrating we will turn the option to `false`. Long term, once all code
is migrated and the old patching is removed, we will remove this flag
entirely once again.

Bug: 1122511
Change-Id: I76b818e83b7d5ee0175e1548759373f53481e0ab
No-Presubmit: True
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2516345
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-11-03 14:11:46 +00:00
Andres Olivares 21ab05b27a Make template type of data_grid/DataGrid.js more specific to prepare for migration to TS
Bug: chromium:1011811
Change-Id: I6395a1839cc22aebf410c5e6423f40d785dbd1c6
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2476853
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-10-21 14:25:55 +00:00
Andres Olivares 660580a68a [ts] Typecheck data_grid/ViewportDataGrid.js with TypeScript
Bug: chromium:1011811
Change-Id: I96e96c4a31ad849659268fcd260996080493ce5b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2459646
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-10-08 21:09:27 +00:00
Andres Olivares 03d9c75f88 [ts] Typecheck data-grid/SortableDataGrid.js with TypeScript
Bug: chromium:1011811
Change-Id: I35a0f5694cc8d701ae3f78155ec0647e3d87e9a2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2440272
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2020-10-01 15:46:41 +00:00
Sigurd Schneider 2533de14e2 Show initiator URL in developer resources view
Drive-by: Enable TS checking for front_end/developer_resources
Drive-by: Properly export IOModel

Bug: chromium:1069378, chromium:1011811
Change-Id: I50b7ae66067d426c8dda0d8829c35b6f6aa9696e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2428331
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
2020-09-24 14:08:06 +00:00
Tim van der Lippe 054314154c Migrate developer_resources to devtools_entrypoint
R=jacktfranklin@chromium.org

Bug: 1101738
Change-Id: I98099c5cba48d3ae28711c7a9a432670f6025b8b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2390626
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2020-09-03 08:54:31 +00:00
Wolfgang Beyer d376239b44 Move FrameManager from browser_sdk to sdk
Change-Id: I4a14a449d1de6ea21912bb130d5ca03bf8b28d57
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2287519
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
2020-07-08 15:29:26 +00:00
Sigurd Schneider 9190780721 Add developer resources tab (behind a flag)
This ads a tab where all developer resources (that is source maps
and source code referenced from them) are listed once a load is
triggered. The tabs main function is to display the network load
status of the resources: It lists whether the load was successful
or not, and provides an error description. This is useful for
debugging when we enable a different source map loading mechanism.

The tab is currently gated behind a flag.

Screenshot: https://imgur.com/a/raMhmB5
Design Doc: https://docs.google.com/document/d/1RGxUa8yg_gF-G9exoXQa7a9ZyIMFOrUHtq9T793XTbY
Bug: chromium:1069378
Change-Id: I84e880cc45c6520066d12310aff119fee5749fe1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2273188
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Reviewed-by: Peter Marshall <petermarshall@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
2020-07-08 09:17:16 +00:00