OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 * This view displays information on the host resolver: | 6 * This view displays information on the host resolver: |
7 * | 7 * |
8 * - Shows the default address family. | 8 * - Shows the default address family. |
9 * - Has a button to enable IPv6, if it is disabled. | 9 * - Has a button to enable IPv6, if it is disabled. |
10 * - Shows the current host cache contents. | 10 * - Shows the current host cache contents. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 } | 195 } |
196 | 196 |
197 addTextNode(td, dnsConfig[key]); | 197 addTextNode(td, dnsConfig[key]); |
198 } | 198 } |
199 } | 199 } |
200 | 200 |
201 /** | 201 /** |
202 * Takes a last of strings and adds them all to a DOM node, displaying them | 202 * Takes a last of strings and adds them all to a DOM node, displaying them |
203 * on separate lines. | 203 * on separate lines. |
204 * @param {DomNode} node The parent node. | 204 * @param {DomNode} node The parent node. |
205 * @param {Array.<string>} list List of strings to add to the node. | 205 * @param {Array<string>} list List of strings to add to the node. |
206 */ | 206 */ |
207 function addListToNode_(node, list) { | 207 function addListToNode_(node, list) { |
208 for (var i = 0; i < list.length; ++i) | 208 for (var i = 0; i < list.length; ++i) |
209 addNodeWithText(node, 'div', list[i]); | 209 addNodeWithText(node, 'div', list[i]); |
210 } | 210 } |
211 | 211 |
212 return DnsView; | 212 return DnsView; |
213 })(); | 213 })(); |
OLD | NEW |