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 // NOTE(stevenjb): This code is in the process of being converted to be | 5 // NOTE(stevenjb): This code is in the process of being converted to be |
6 // compatible with the networkingPrivate extension API: | 6 // compatible with the networkingPrivate extension API: |
7 // * The network property dictionaries are being converted to use ONC values. | 7 // * The network property dictionaries are being converted to use ONC values. |
8 // * chrome.send calls will be replaced with an API object that simulates the | 8 // * chrome.send calls will be replaced with an API object that simulates the |
9 // networkingPrivate API. See network_config.js. | 9 // networkingPrivate API. See network_config.js. |
10 // See crbug.com/279351 for more info. | 10 // See crbug.com/279351 for more info. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 'detailsInternetPage', | 121 'detailsInternetPage', |
122 null, | 122 null, |
123 'details-internet-page'); | 123 'details-internet-page'); |
124 } | 124 } |
125 | 125 |
126 cr.addSingletonGetter(DetailsInternetPage); | 126 cr.addSingletonGetter(DetailsInternetPage); |
127 | 127 |
128 DetailsInternetPage.prototype = { | 128 DetailsInternetPage.prototype = { |
129 __proto__: OptionsPage.prototype, | 129 __proto__: OptionsPage.prototype, |
130 | 130 |
131 /** | 131 /** @override */ |
132 * Initializes DetailsInternetPage page. | |
133 * Calls base class implementation to starts preference initialization. | |
134 */ | |
135 initializePage: function() { | 132 initializePage: function() { |
136 OptionsPage.prototype.initializePage.call(this); | 133 OptionsPage.prototype.initializePage.call(this); |
137 var params = parseQueryParams(window.location); | 134 var params = parseQueryParams(window.location); |
138 this.initializePageContents_(params); | 135 this.initializePageContents_(params); |
139 this.showNetworkDetails_(params); | 136 this.showNetworkDetails_(params); |
140 }, | 137 }, |
141 | 138 |
142 /** | 139 /** |
143 * Auto-activates the network details dialog if network information | 140 * Auto-activates the network details dialog if network information |
144 * is included in the URL. | 141 * is included in the URL. |
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 | 1301 |
1305 // Don't show page name in address bar and in history to prevent people | 1302 // Don't show page name in address bar and in history to prevent people |
1306 // navigate here by hand and solve issue with page session restore. | 1303 // navigate here by hand and solve issue with page session restore. |
1307 OptionsPage.showPageByName('detailsInternetPage', false); | 1304 OptionsPage.showPageByName('detailsInternetPage', false); |
1308 }; | 1305 }; |
1309 | 1306 |
1310 return { | 1307 return { |
1311 DetailsInternetPage: DetailsInternetPage | 1308 DetailsInternetPage: DetailsInternetPage |
1312 }; | 1309 }; |
1313 }); | 1310 }); |
OLD | NEW |