Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1216)

Unified Diff: ui/webui/resources/cr_elements/network/cr_network_list_item.html

Issue 2069323002: Add support for custom entries in <cr_network_select/>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@604119--Implement-Chrome-OS-out-of-box-flow-in-Material-Design--ImplementNetworkSelectionScreen
Patch Set: Fix compile. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/network/cr_network_list_item.html
diff --git a/ui/webui/resources/cr_elements/network/cr_network_list_item.html b/ui/webui/resources/cr_elements/network/cr_network_list_item.html
deleted file mode 100644
index 23fca1359d95e54dc59f6b526036d9360484e201..0000000000000000000000000000000000000000
--- a/ui/webui/resources/cr_elements/network/cr_network_list_item.html
+++ /dev/null
@@ -1,123 +0,0 @@
-<link rel="import" href="chrome://resources/cr_elements/icons.html">
-<link rel="import" href="chrome://resources/html/polymer.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-flex-layout.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
-<link rel="import" href="chrome://resources/cr_elements/network/cr_network_icon.html">
-<link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.html">
-
-<dom-module id="cr-network-list-item">
- <template>
- <style>
- :host {
- display: inline-block;
- }
-
- span {
- cursor: pointer;
- }
-
- #divOuter {
- border-style: none;
- display: flex;
- flex-direction: row;
- margin: 0;
- padding: 4px;
- }
-
- #divOuter[is-list-item]:hover {
- background-color: lightgrey;
- }
-
- #divIcon {
- display: flex;
- flex: 0 0 auto;
- flex-direction: column;
- justify-content: center;
- }
-
- #icon {
- height: 32px;
- width: 32px;
-
- @apply(--cr-network-icon-mixin);
- }
-
- #divDetail {
- display: flex;
- flex: 1 0 auto;
- flex-direction: row;
- }
-
- #divText {
- display: flex;
- flex: 1 0 auto;
- flex-direction: column;
- justify-content: center;
- }
-
- #networkName {
- -webkit-margin-start: 8px;
- font-size: 16px;
-
- @apply(--cr-network-name-mixin);
- }
-
- #networkStateText {
- -webkit-margin-start: 8px;
- color: grey;
- font-size: 14px;
-
- @apply(--cr-network-state-mixin);
- }
-
- .buttons {
- align-items: center;
- display: flex;
- flex-direction: row;
- }
-
- .buttons paper-icon-button {
- text-align: center;
- }
-
- .known paper-icon-button {
- width: 60px;
- }
-
- .connected {
- font-weight: bold;
- }
- </style>
- <div id="divOuter" is-list-item$="[[isListItem_(listItemType)]]">
- <div id="divIcon">
- <cr-network-icon id="icon" is-list-item="[[isListItem_(listItemType)]]"
- network-state="[[networkState]]">
- </cr-network-icon>
- </div>
- <div id="divText" class="layout horizontal flex">
- <span id="networkName"></span>
- <span id="networkStateText" hidden$="[[isListItem_(listItemType)]]">
- </span>
- </div>
- <div class="buttons"
- hidden$="[[!isListItemType_(listItemType, 'visible')]]">
- <paper-icon-button icon="cr:settings" on-tap="fireShowDetails_">
- </paper-icon-button>
- </div>
- <div class="known buttons"
- hidden$="[[!isListItemType_(listItemType, 'known')]]">
- <paper-icon-button icon="[[sharedIcon_(networkState)]]" disabled>
- </paper-icon-button>
- <paper-icon-button icon="[[preferredIcon_(networkState)]]"
- disabled$="[[isPolicyManaged_(networkState)]]"
- on-tap="fireTogglePreferred_">
- </paper-icon-button>
- <paper-icon-button icon="cr:clear"
- disabled$="[[isPolicyManaged_(networkState)]]"
- on-tap="fireRemove_">
- </paper-icon-button>
- </div>
- </div>
- </template>
- <script src="cr_network_list_item.js"></script>
-</dom-module>

Powered by Google App Engine
This is Rietveld 408576698