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 cr.define('options', function() { | 5 cr.define('options', function() { |
6 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
7 var Page = cr.ui.pageManager.Page; | 7 var Page = cr.ui.pageManager.Page; |
8 var PageManager = cr.ui.pageManager.PageManager; | 8 var PageManager = cr.ui.pageManager.PageManager; |
9 | 9 |
10 ///////////////////////////////////////////////////////////////////////////// | 10 ///////////////////////////////////////////////////////////////////////////// |
11 // CertificateManagerTab class: | 11 // CertificateManagerTab class: |
12 | 12 |
13 /** | 13 /** |
14 * blah | 14 * blah |
15 * @param {!string} id The id of this tab. | 15 * @param {!string} id The id of this tab. |
16 * @param {boolean} isKiosk True if dialog is shown during CrOS kiosk launch. | 16 * @param {boolean} isKiosk True if dialog is shown during CrOS kiosk launch. |
| 17 * @constructor |
17 */ | 18 */ |
18 function CertificateManagerTab(id, isKiosk) { | 19 function CertificateManagerTab(id, isKiosk) { |
19 this.tree = $(id + '-tree'); | 20 this.tree = $(id + '-tree'); |
20 | 21 |
21 options.CertificatesTree.decorate(this.tree); | 22 options.CertificatesTree.decorate(this.tree); |
22 this.tree.addEventListener('change', | 23 this.tree.addEventListener('change', |
23 this.handleCertificatesTreeChange_.bind(this)); | 24 this.handleCertificatesTreeChange_.bind(this)); |
24 | 25 |
25 var tree = this.tree; | 26 var tree = this.tree; |
26 | 27 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 this.updateButtonState(data); | 163 this.updateButtonState(data); |
163 }, | 164 }, |
164 }; | 165 }; |
165 | 166 |
166 ///////////////////////////////////////////////////////////////////////////// | 167 ///////////////////////////////////////////////////////////////////////////// |
167 // CertificateManager class: | 168 // CertificateManager class: |
168 | 169 |
169 /** | 170 /** |
170 * Encapsulated handling of ChromeOS accounts options page. | 171 * Encapsulated handling of ChromeOS accounts options page. |
171 * @constructor | 172 * @constructor |
| 173 * @extends {cr.ui.pageManager.Page} |
172 */ | 174 */ |
173 function CertificateManager(model) { | 175 function CertificateManager(model) { |
174 Page.call(this, 'certificates', | 176 Page.call(this, 'certificates', |
175 loadTimeData.getString('certificateManagerPageTabTitle'), | 177 loadTimeData.getString('certificateManagerPageTabTitle'), |
176 'certificateManagerPage'); | 178 'certificateManagerPage'); |
177 } | 179 } |
178 | 180 |
179 cr.addSingletonGetter(CertificateManager); | 181 cr.addSingletonGetter(CertificateManager); |
180 | 182 |
181 CertificateManager.prototype = { | 183 CertificateManager.prototype = { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 $('serverCertsTab-import').disabled = false; | 239 $('serverCertsTab-import').disabled = false; |
238 $('caCertsTab-import').disabled = false; | 240 $('caCertsTab-import').disabled = false; |
239 }; | 241 }; |
240 | 242 |
241 // Export | 243 // Export |
242 return { | 244 return { |
243 CertificateManagerTab: CertificateManagerTab, | 245 CertificateManagerTab: CertificateManagerTab, |
244 CertificateManager: CertificateManager | 246 CertificateManager: CertificateManager |
245 }; | 247 }; |
246 }); | 248 }); |
OLD | NEW |