Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parent access widget: create offline screen
Create an "offline" screen for parent access widget and show it when the dialog is displayed without network connection. Bug: b:258486265 Change-Id: If6d02b5e566215385328f288ad48b1746036ea80 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4031011 Reviewed-by: Aga Wronska <agawronska@chromium.org> Reviewed-by: Dan S <danan@chromium.org> Commit-Queue: Galen Corey <galenemco@chromium.org> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/main@{#1075280}
- Loading branch information
Galen Corey
authored and
Chromium LUCI CQ
committed
Nov 23, 2022
1 parent
8f8f242
commit 18eba87
Showing
12 changed files
with
164 additions
and
4 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
1 change: 1 addition & 0 deletions
1
chrome/app/chromeos_strings_grdp/IDS_PARENT_ACCESS_OFFLINE_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 @@ | ||
51ee570fb62082b02ee0266f239ab986e2f3caa5 |
1 change: 1 addition & 0 deletions
1
chrome/app/chromeos_strings_grdp/IDS_PARENT_ACCESS_OFFLINE_HEADING.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 @@ | ||
51ee570fb62082b02ee0266f239ab986e2f3caa5 |
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
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
37 changes: 37 additions & 0 deletions
37
chrome/browser/resources/chromeos/parent_access/parent_access_offline.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,37 @@ | ||
<style> | ||
#offline-screen { | ||
background-color: var(--cros-bg-color-elevation-1); | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
justify-content: flex-start; | ||
padding: 26px 24px 20px; | ||
} | ||
|
||
.google-logo { | ||
width: 100px; | ||
} | ||
|
||
.offline-text { | ||
align-items: center; | ||
display: flex; | ||
font-size: 14px; | ||
margin-top: 26px; | ||
} | ||
|
||
.offline-title { | ||
font-family: var(--cros-font-family-google-sans); | ||
font-size: 24px; | ||
font-weight: 500; | ||
margin-top: 32px; | ||
} | ||
</style> | ||
|
||
<div id="offline-screen"> | ||
<img class="google-logo" src="chrome://theme/IDR_LOGO_GOOGLE_COLOR_90" | ||
alt="Google"> | ||
</img> | ||
<div class="offline-title"> $i18n{offlineTitle} </div> | ||
<div class="offline-text"> $i18n{offlineDescription} </div> | ||
</div> |
18 changes: 18 additions & 0 deletions
18
chrome/browser/resources/chromeos/parent_access/parent_access_offline.js
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,18 @@ | ||
// Copyright 2022 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import 'chrome://resources/cr_elements/cr_view_manager/cr_view_manager.js'; | ||
|
||
import {html, PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; | ||
|
||
class ParentAccessOffline extends PolymerElement { | ||
static get is() { | ||
return 'parent-access-offline'; | ||
} | ||
|
||
static get template() { | ||
return html`{__html_template__}`; | ||
} | ||
} | ||
customElements.define(ParentAccessOffline.is, ParentAccessOffline); |
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