Implement hiding of close button for LoginScreenExtensionUi window
Background: The chrome.loginScreenUi extension API can open windows while in the ChromeOS signin screen. The API uses a views::WebDialogView to show the window. One of the parameters of the API sets whether the window can be closed by the user. Currently, setting the parameter to false prevents the user from closing the window, but the close button is still interactive (animates when hovered and when pressed). ash::NonClientFrameViewAsh and DefaultCaptionButtonModel treats the close button as always visible and always enabled. This CL changes FrameCaptionButtonContainerView to not show the close button depending on views::WidgetDelegate::ShouldShowCloseButton(). In addition, this CL also makes the LoginScreenExtensionUi window not draggable. BUG=985754 Change-Id: I191cfad13aeb2764fecaa8867cf344a16aeb0e6d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1709586 Commit-Queue: Jit Yao Yap <jityao@google.com> Reviewed-by:Alexander Hendrich <hendrich@chromium.org> Reviewed-by:
Toni Baržić <tbarzic@chromium.org> Reviewed-by:
Mitsuru Oshima <oshima@chromium.org> Reviewed-by:
Sadrul Chowdhury <sadrul@chromium.org> Cr-Commit-Position: refs/heads/master@{#682727}
Showing
No preview for this file type
Please register or sign in to comment