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

Unified Diff: ui/webui/resources/cr_elements/v1_0/network/cr_network_list.js

Issue 1406023003: Elim cr_elements/v1_0 subdirectory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 2 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/v1_0/network/cr_network_list.js
diff --git a/ui/webui/resources/cr_elements/v1_0/network/cr_network_list.js b/ui/webui/resources/cr_elements/v1_0/network/cr_network_list.js
deleted file mode 100644
index 04962be36ad4e0488e99a769d71019b7b4bfa7fe..0000000000000000000000000000000000000000
--- a/ui/webui/resources/cr_elements/v1_0/network/cr_network_list.js
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// 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 collapsable list of networks.
- */
-
-(function() {
-
-/**
- * Polymer class definition for 'cr-network-list'.
- * TODO(stevenjb): Update with iron-list(?) once implemented in Polymer 1.0.
- * @element cr-network-list
- */
-Polymer({
- is: 'cr-network-list',
-
- properties: {
- /**
- * The maximum height in pixels for the list.
- */
- maxHeight: {
- type: Number,
- value: 1000,
- observer: 'maxHeightChanged_'
- },
-
- /**
- * Determines how the list item will be displayed:
- * 'visible' - displays the network icon (with strength) and name
- * 'known' - displays the visible info along with a toggle icon for the
- * preferred status and a remove button.
- */
- listType: {
- type: String,
- value: 'visible'
- },
-
- /**
- * The list of network state properties for the items to display.
- *
- * @type {!Array<!CrOnc.NetworkStateProperties>}
- */
- networks: {
- type: Array,
- value: function() { return []; }
- },
-
- /**
- * True if the list is opened.
- */
- opened: {
- type: Boolean,
- value: true
- }
- },
-
- /**
- * Polymer maxHeight changed method.
- */
- maxHeightChanged_: function() {
- this.$.container.style.maxHeight = this.maxHeight + 'px';
- },
-
- /**
- * Event triggered when a list item is tapped.
- * @param {!{model: {item: !CrOnc.NetworkStateProperties}}} event
- * @private
- */
- onTap_: function(event) {
- this.fire('selected', event.model.item);
- },
-});
-})();

Powered by Google App Engine
This is Rietveld 408576698