| commit | cf629ff396e7c8afcb3e203c33d76a0b37384f9c | [log] [tgz] |
|---|---|---|
| author | Benedikt Meurer <bmeurer@chromium.org> | Mon Dec 30 11:53:00 2024 |
| committer | Devtools-frontend LUCI CQ <devtools-frontend-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Dec 30 15:01:54 2024 |
| tree | 19f88b0927f5df749a9651b7fb2883e1d2481544 | |
| parent | c17be942eda920858d6f98c2a4ff36483cde1782 [diff] |
[cleanup] Remove `UI.UItils.registerCustomElement()`. As part of the Vision for the Chrome DevTools UI Engineering[^1], we need to migrate off of built-in custom elements. Which also has the additional benefit that our UI will work in Safari (part of this was already fixed with https://crrev.com/c/6028362 earlier). This CL replaces the previous built-in custom elements with proper autonomous custom elements: `BezierSwatch`,`DevToolsIconLabel`, `DevToolsSmallBubble`, and `DevToolsCloseButton`. The `HistoryInput` component only added special handling for keydown and input events, and otherwise was just a simple `HTMLInputElement`. This migrates the class to a simple helper function that does the same (without requiring a built-in custom element, which we're trying to migrate off of). The `DevToolsSlider` and `DevToolsRadioButton` built-in custom elements are removed in favor of simple helpers that just create the appropriate `HTMLInputElement`s. The styles for these are moved to the `inspectorCommon.css`. The custom elements were really overkill for something trivial as these and only added confusion. The component server and documentation now also describe sliders and radio buttons. This change is functionally neutral and only replaces implementation details. Drive-by-fix: Fix a bunch of outdated / incorrect CSS along the way. [^1]: http://go/chrome-devtools:ui-engineering-proposal Bug: 386453980 Change-Id: I7ba9f9c156e5f0f9396c0c6eb3d2febc8d371b33 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6114579 Reviewed-by: Changhao Han <changhaohan@chromium.org> Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
The client-side of the Chrome DevTools, including all TypeScript & CSS to run the DevTools webapp.
The frontend is available on chromium.googlesource.com. Check out the Chromium DevTools documentation for instructions to set up, use, and maintain a DevTools front-end checkout, as well as design guidelines, and architectural documentation.
DevTools frontend repository is mirrored on GitHub.
DevTools frontend is also available on NPM as the chrome-devtools-frontend package. It's not currently available via CJS or ES modules, so consuming this package in other tools may require some effort.
The version number of the npm package (e.g. 1.0.373466) refers to the Chromium commit position of latest frontend git commit. It's incremented with every Chromium commit, however the package is updated roughly daily.
There are a few options to keep an eye on the latest and greatest of DevTools development:
Follow What's new in DevTools.
Follow Umar's Dev Tips.
Follow these individual Twitter accounts: @umaar, @malyw, @kdzwinel, @addyosmani, @paul_irish, @samccone, @mathias, @mattzeunert, @PrashantPalikhe, @ziyunfei, and @bmeurer.
Follow to g/devtools-reviews@chromium.org mailing list for all reviews of pending code, and view the log, or follow @DevToolsCommits on Twitter.
Checkout all open DevTools tickets on crbug.com
Use Chrome Canary and poke around the experiments.