OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview ONC network configuration support class. Wraps a dictionary | 6 * @fileoverview |
7 * object containing ONC managed or unmanaged dictionaries. Also provides | 7 * ONC network configuration support class. Wraps a dictionary object containing |
8 * special accessors for ONC properties. See cr-onc-types for ONC types, | 8 * ONC managed or unmanaged dictionaries. Also provides special accessors for |
9 * e.g. CrOnc.NetworkConfigType. Used by consumers of the | 9 * ONC properties. See cr-onc-types for ONC types, e.g. CrOnc.NetworkConfigType. |
10 * chrome.networkingPrivate API. See components/onc/docs/onc_spec.html. | 10 * Used by consumers of the chrome.networkingPrivate API. See |
11 * components/onc/docs/onc_spec.html. | |
stevenjb
2015/03/06 17:39:15
See previous comment
michaelpg
2015/03/06 18:24:09
Done.
| |
11 */ | 12 */ |
12 Polymer('cr-onc-data', { | 13 Polymer('cr-onc-data', { |
13 publish: { | 14 publish: { |
14 /** | 15 /** |
15 * ONC configuration property dictionary, e.g. the result of a | 16 * ONC configuration property dictionary, e.g. the result of a |
16 * chrome.networkingPrivate.getProperties() call. | 17 * chrome.networkingPrivate.getProperties() call. |
17 * | 18 * |
18 * @attribute data | 19 * @attribute data |
19 * @type CrOnc.NetworkConfigType | 20 * @type CrOnc.NetworkConfigType |
20 * @default null | 21 * @default null |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 * | 81 * |
81 * @param {!CrOnc.NetworkConfigType} state The network state properties. | 82 * @param {!CrOnc.NetworkConfigType} state The network state properties. |
82 * @return {!CrOncDataElement} A cr-onc-data element. | 83 * @return {!CrOncDataElement} A cr-onc-data element. |
83 */ | 84 */ |
84 CrOncDataElement.create = function(state) { | 85 CrOncDataElement.create = function(state) { |
85 var oncData = /** @type {!CrOncDataElement} */ ( | 86 var oncData = /** @type {!CrOncDataElement} */ ( |
86 document.createElement('cr-onc-data')); | 87 document.createElement('cr-onc-data')); |
87 oncData.data = state; | 88 oncData.data = state; |
88 return oncData; | 89 return oncData; |
89 }; | 90 }; |
OLD | NEW |