-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CrOS Cellular] Add APN subpage description.
* Add APN subpage description with 'Learn more' link. https://screenshot.googleplex.com/AZkfPxPdw3NrxJT.png Old CL without Change-Id: crrev.com/c/3999584 Test: autoninja -C out/Default/ browser_tests && testing/xvfb.py ./out/Default/browser_tests --gtest_filter=*ApnList* Bug: b:162365553 Change-Id: I063bbd34aa8d55695d6e173c3abf7f3728131a51 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4001709 Reviewed-by: Chad Duffin <chadduffin@chromium.org> Reviewed-by: Gordon Seto <gordonseto@google.com> Commit-Queue: Antoni Dikov <adikov@google.com> Cr-Commit-Position: refs/heads/main@{#1067474}
- Loading branch information
Antoni Dikov
authored and
Chromium LUCI CQ
committed
Nov 4, 2022
1 parent
9ae2524
commit 8a97f77
Showing
14 changed files
with
104 additions
and
6 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// 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. | ||
|
||
export {}; |
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,17 @@ | ||
<style include="network-shared"> | ||
#apnDescription { | ||
align-items: flex-start; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
margin-inline-end: 40px; | ||
min-height: var(--cr-section-min-height); | ||
padding: 0 var(--cr-section-padding); | ||
} | ||
</style> | ||
<div id="apnDescription"> | ||
<localized-link | ||
localized-string="[[i18nAdvanced('apnSettingsDescriptionWithLink')]]" | ||
on-link-clicked="onLearnMoreClicked_"> | ||
</localized-link> | ||
</div> |
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,30 @@ | ||
// 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. | ||
|
||
/** | ||
* @fileoverview Polymer element for displaying a list of cellular | ||
* APNs | ||
*/ | ||
|
||
import './network_shared.css.js'; | ||
import '//resources/polymer/v3_0/iron-list/iron-list.js'; | ||
|
||
import {I18nBehavior} from '//resources/ash/common/i18n_behavior.js'; | ||
import {Polymer} from '//resources/polymer/v3_0/polymer/polymer_bundled.min.js'; | ||
|
||
import {getTemplate} from './apn_list.html.js'; | ||
|
||
Polymer({ | ||
_template: getTemplate(), | ||
is: 'apn-list', | ||
|
||
behaviors: [I18nBehavior], | ||
|
||
/** | ||
* Redirects to "Lean more about APN" page. | ||
* TODO(b/162365553): Implement. | ||
* @private | ||
*/ | ||
onLearnMoreClicked_() {}, | ||
}); |
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
4 changes: 1 addition & 3 deletions
4
chrome/browser/resources/settings/chromeos/internet_page/apn_subpage.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
<style include="settings-shared"> | ||
</style> | ||
<div id="container"> | ||
<!-- TODO(b/162365553): Add APN detail --> | ||
</div> | ||
<apn-list></apn-list> |
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
26 changes: 26 additions & 0 deletions
26
chrome/test/data/webui/cr_components/chromeos/network/apn_list_test.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,26 @@ | ||
// 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://os-settings/strings.m.js'; | ||
import 'chrome://resources/ash/common/network/apn_list.js'; | ||
|
||
import {flush} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; | ||
|
||
import {assertTrue} from '../../../chai_assert.js'; | ||
|
||
suite('ApnListTest', function() { | ||
/** @type {ApnListElement} */ | ||
let apnList = null; | ||
|
||
setup(function() { | ||
apnList = document.createElement('apn-list'); | ||
document.body.appendChild(apnList); | ||
flush(); | ||
}); | ||
|
||
test('Check if APN description exists', async function() { | ||
assertTrue(!!apnList); | ||
assertTrue(!!apnList.shadowRoot.querySelector('localized-link')); | ||
}); | ||
}); |
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
chromeos/chromeos_strings_grd/IDS_SETTINGS_APN_DESCRIPTION_WITH_LEARN_MORE_LINK.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 @@ | ||
5aabc82b0ee8a1b7091131be13921d9deb6b881c |
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