commit | 288053857faefc760557c35fb503ff781e80bc28 | [log] [tgz] |
---|---|---|
author | Ben Becker <benbecker@chromium.org> | Wed Mar 02 23:22:35 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 02 23:22:35 2022 |
tree | 720e9d3318c755ef4581e456552194f95a45994d | |
parent | ceae595102dea86bf4322857d4ec5fe32010ab4e [diff] |
CloseAll: Create components for UI This CL creates two new components for the Close-All UI: a DeskActionView and a DeskActionContextMenu. The DeskActionView is a panel with two buttons (one for closing a desk and all of its windows and one for combining a desk with another desk) that can be displayed on the DeskPreviewView when the user hovers over it. The DeskActionContextMenu is a ContextMenuController which displays the same options as the DeskActionView, and also takes a callback for when the menu is closed so that the owning component can add a highlight to the DeskPreviewView when the corresponding context menu is open and remove the highlight when the context menu is closed. This controller will open the menu when the DeskPreviewView is either right-clicked or long-pressed. Bug: 1300305 Change-Id: I94828af8546277e9154f619cc9c144c7de33ff51 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3485443 Reviewed-by: Sammie Quon <sammiequon@chromium.org> Reviewed-by: Ahmed Fakhry <afakhry@chromium.org> Commit-Queue: Ben Becker <benbecker@chromium.org> Cr-Commit-Position: refs/heads/main@{#976860}
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.