v152 · window shape
Rectangle composer
These controls use the real proposed window.chromeos.isolatedWebApp.setShape() call when it exists. On ordinary pages they report the required ChromeOS IWA, unframed display mode, allowlist, and window-management permission prerequisites.
Compose a two-rectangle window shape
Real API requirement: the page calls setShape([new DOMRect(...)]) only when window.chromeos.isolatedWebApp.setShape is available.
A
B
code path
const rectangles = [new DOMRect(0, 0, width, height), new DOMRect(x, y, 120, 150)];
await window.chromeos.isolatedWebApp.setShape(rectangles);