Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce security curtain screen, compliant with UX requirements
This replaces placeholder UI that was previously added (but never released to any customers). UX requirement: http://shortn/_tWLEP1bbdp Implementation: Light mode: https://screenshot.googleplex.com/7UwiiWHr3HEVNzU.png Dark mode: https://screenshot.googleplex.com/BFWm4YsNSpwmkvN.png Note that the implementation is not 100% according to the UX requirements because to fully comply I have to wait until the OOBE code is migrated to their new look-and-feel, which is only scheduled for M116. I opened b/271099991 to ensure we do not forget to update the UX at that time. Low-Coverage-Reason: Will add browser pixel tests to ensure the curtain looks correct, but support for that is not there yet. Bug: b/266550061 Change-Id: I1a30de86140b7d796a55399e7573b8260d8560bc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4254387 Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by: Renato Silva <rrsilva@google.com> Commit-Queue: Jeroen Dhollander <jeroendh@google.com> Cr-Commit-Position: refs/heads/main@{#1120420}
- Loading branch information
Jeroen Dhollander
authored and
Chromium LUCI CQ
committed
Mar 22, 2023
1 parent
2f32cad
commit b93b120
Showing
23 changed files
with
315 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
chrome/app/chromeos_strings_grdp/IDS_SECURITY_CURTAIN_DESCRIPTION.png.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
344f76c78773402b51bc14353489b58efc19569a |
1 change: 1 addition & 0 deletions
1
chrome/app/chromeos_strings_grdp/IDS_SECURITY_CURTAIN_TITLE.png.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
344f76c78773402b51bc14353489b58efc19569a |
27 changes: 27 additions & 0 deletions
27
chrome/browser/resources/chromeos/remote_maintenance_curtain/BUILD.gn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2023 The Chromium Authors | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import("//ui/webui/resources/tools/build_webui.gni") | ||
|
||
assert(is_chromeos_ash) | ||
|
||
build_webui("build") { | ||
grd_prefix = "remote_maintenance_curtain" | ||
|
||
static_files = [ | ||
"main.html", | ||
|
||
# Vector resources | ||
"images/admin_control_dark.svg", | ||
"images/admin_control_light.svg", | ||
] | ||
|
||
# Files added here must have a corresponding .html file | ||
web_component_files = [ "curtain_screen.ts" ] | ||
|
||
ts_deps = [ | ||
"//third_party/polymer/v3_0:library", | ||
"//ui/webui/resources/js:build_ts", | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
chrome/browser/resources/chromeos/remote_maintenance_curtain/OWNERS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
file://ash/curtain/OWNERS |
21 changes: 21 additions & 0 deletions
21
chrome/browser/resources/chromeos/remote_maintenance_curtain/curtain_screen.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- | ||
Copyright 2023 The Chromium Authors | ||
Use of this source code is governed by a BSD-style license that can be | ||
found in the LICENSE file. | ||
--> | ||
|
||
<style include="oobe-common-styles oobe-dialog-host-styles"></style> | ||
|
||
<oobe-adaptive-dialog id="mainCurtainDialog" role="dialog" | ||
aria-label="$i18n{curtainTitle}"> | ||
<iron-icon slot="icon" icon="oobe-32:enterprise"></iron-icon> | ||
<h1 slot="title">$i18n{curtainTitle}</h1> | ||
<div slot="subtitle">$i18n{curtainDescription}</div> | ||
<div slot="content" class="flex layout vertical center center-justified"> | ||
<picture> | ||
<source srcset="images/admin_control_dark.svg" | ||
media="(prefers-color-scheme: dark)" class="oobe-illustration"> | ||
<img class="illustration" src="images/admin_control_light.svg"> | ||
</picture> | ||
</div> | ||
</oobe-adaptive-dialog> |
Oops, something went wrong.