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 // require: onc_data.js | 5 // require: onc_data.js |
6 | 6 |
7 // NOTE(stevenjb): This code is in the process of being converted to be | 7 // NOTE(stevenjb): This code is in the process of being converted to be |
8 // compatible with the networkingPrivate extension API: | 8 // compatible with the networkingPrivate extension API: |
9 // * The network property dictionaries are being converted to use ONC values. | 9 // * The network property dictionaries are being converted to use ONC values. |
10 // * chrome.send calls will be replaced with an API object that simulates the | 10 // * chrome.send calls will be replaced with an API object that simulates the |
11 // networkingPrivate API. See network_config.js. | 11 // networkingPrivate API. See network_config.js. |
12 // See crbug.com/279351 for more info. | 12 // See crbug.com/279351 for more info. |
13 | 13 |
| 14 /** @typedef {{address: (string|undefined), |
| 15 * gateway: (string|undefined), |
| 16 * nameServers: (string|undefined), |
| 17 * netmask: (string|undefined), |
| 18 * prefixLength: (number|undefined)}} |
| 19 * @see chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc |
| 20 */ |
| 21 var IPInfo; |
| 22 |
14 /** @typedef {{activationState: (string|undefined), | 23 /** @typedef {{activationState: (string|undefined), |
15 * carriers: Array, | 24 * carriers: Array, |
16 * currentCarrierIndex; (number|undefined), | 25 * currentCarrierIndex: (number|undefined), |
| 26 * deviceConnected: boolean, |
| 27 * errorMessage: string, |
17 * ipAutoConfig: boolean, | 28 * ipAutoConfig: boolean, |
18 * ipconfig: Object, | 29 * ipconfig: IPInfo, |
19 * nameServerType: string, | 30 * nameServerType: string, |
20 * restrictedPool: (string|undefined), | 31 * restrictedPool: (string|undefined), |
21 * roamingState: (string|undefined), | 32 * roamingState: (string|undefined), |
22 * savedIP: Object, | 33 * savedIP: Object, |
23 * showActivateButton: (boolean|undefined) | 34 * servicePath: string, |
| 35 * shared: boolean, |
| 36 * showActivateButton: (boolean|undefined), |
24 * showViewAccountButton: (boolean|undefined), | 37 * showViewAccountButton: (boolean|undefined), |
25 * staticIP: Object}} | 38 * staticIP: IPInfo}} |
26 * Only the keys which had caused problems are declared in this typedef. | 39 * Only the keys which had caused problems are declared in this typedef. |
27 * There are many more of them. | 40 * There are many more of them. |
28 * @see chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc | 41 * @see chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc |
29 */ | 42 */ |
30 var InternetDetailedInfo; | 43 var InternetDetailedInfo; |
31 | 44 |
32 cr.define('options.internet', function() { | 45 cr.define('options.internet', function() { |
33 var OncData = cr.onc.OncData; | 46 var OncData = cr.onc.OncData; |
34 var Page = cr.ui.pageManager.Page; | 47 var Page = cr.ui.pageManager.Page; |
35 var PageManager = cr.ui.pageManager.PageManager; | 48 var PageManager = cr.ui.pageManager.PageManager; |
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1491 | 1504 |
1492 // Don't show page name in address bar and in history to prevent people | 1505 // Don't show page name in address bar and in history to prevent people |
1493 // navigate here by hand and solve issue with page session restore. | 1506 // navigate here by hand and solve issue with page session restore. |
1494 PageManager.showPageByName('detailsInternetPage', false); | 1507 PageManager.showPageByName('detailsInternetPage', false); |
1495 }; | 1508 }; |
1496 | 1509 |
1497 return { | 1510 return { |
1498 DetailsInternetPage: DetailsInternetPage | 1511 DetailsInternetPage: DetailsInternetPage |
1499 }; | 1512 }; |
1500 }); | 1513 }); |
OLD | NEW |