WebUI Toolbar: Restrict dragging across divider This CL prevents dragging pinned items past the divider, and disables dragging for popped-out items. - Disables draggable attribute on pinned-toolbar-action when poppedOut is true. - Container passes poppedOut to elements based on divider index. - Caps insert index in onActionDragover to dividerIndex - 1 for pinned items. - Adds tests to verify poppedOut property and draggable/dragstart behavior. BUG=493171983 Change-Id: I644783b2dcd433fb798f99756dd9f8e370661e43 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8204804 Commit-Queue: Russ Hamilton <behamilton@google.com> Reviewed-by: Paul Jensen <pauljensen@chromium.org> Cr-Commit-Position: refs/heads/main@{#1676714}
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.