| commit | dfbe3b4a57ddbfbfc74ab261b51db2ed87f754c2 | [log] [tgz] |
|---|---|---|
| author | Andreas Haas <ahaas@chromium.org> | Wed Jul 02 13:42:20 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 02 13:42:20 2025 |
| tree | cf271f2276cc4a51b748e64c19009bf24b8c126c | |
| parent | 604d24144444c2de3636c91d49763206a79e9113 [diff] |
[gin] Introduce gin::Wrappable based on cppgc This CL implements the new `gin::Wrappable` based on cppgc, and ports the tests in `wrappable_unittest` from `gin::DeprecatedWrappable` to `gin::Wrappable`. The new implementation of `gin::Wrappable` has sightly different semantics than the old one. In the old one it was possible to call `Converter<WrappableSubClass>::FromV8()` with any JSObject, and the JSObject would either get unwrapped if it wrapped an object of type `WrappableSubClass`, or it would return nullptr. The new implementation would either return nullptr or crash in a DCHECK if the JSObject wrapped an object which is not of type `WrappableSubClass`. Bug: 345640553 Change-Id: Ia32e2d82f0383afb56382e9fe78fd94677b00fe8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6519611 Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/main@{#1481565}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.