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

Unified Diff: chrome/browser/resources/settings/internet_page/network_list.js

Issue 1277223002: Add cr-network-select element for selecting a Chrome OS network (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_515987_network_configure
Patch Set: Compile fix Created 5 years, 4 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: chrome/browser/resources/settings/internet_page/network_list.js
diff --git a/chrome/browser/resources/settings/internet_page/network_list.js b/chrome/browser/resources/settings/internet_page/network_list.js
deleted file mode 100644
index f025903ff044c1fde838fefc5e69f879afba5e12..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/settings/internet_page/network_list.js
+++ /dev/null
@@ -1,73 +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 'network-list'.
- * TODO(stevenjb): Update with iron-list(?) once implemented in Polymer 1.0.
- * @element network-list
- */
-Polymer({
- is: 'network-list',
-
- properties: {
- /**
- * The maximum height in pixels for the list.
- */
- maxHeight: {
- type: Number,
- value: 1000,
- observer: 'maxHeightChanged_'
- },
-
- /**
- * 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';
- },
-
- /**
- * Called when the cr-collapse element changes size (i.e. is opened).
- * @private
- */
- onResized_: function() {
- if (this.opened)
- this.$.networkList.updateSize();
- },
-
- /**
- * Event triggered when a list item is selected.
- * @param {!{target: !NetworkListItem}} event
- * @private
- */
- onSelected_: function(event) {
- this.fire('selected', event.model.item);
- }
-});
-})();

Powered by Google App Engine
This is Rietveld 408576698