OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 6 |
7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
8 | 8 |
9 ///////////////////////////////////////////////////////////////////////////// | 9 ///////////////////////////////////////////////////////////////////////////// |
10 // PasswordsExceptions class: | 10 // PasswordsExceptions class: |
11 | 11 |
12 /** | 12 /** |
13 * Encapsulated handling of password and exceptions page. | 13 * Encapsulated handling of password and exceptions page. |
14 * @constructor | 14 * @constructor |
15 */ | 15 */ |
16 function PasswordsExceptions() { | 16 function PasswordsExceptions() { |
| 17 this.activeNavTab = null; |
17 OptionsPage.call(this, 'passwordsExceptions', | 18 OptionsPage.call(this, 'passwordsExceptions', |
18 templateData.passwordsExceptionsTitle, | 19 templateData.passwordsExceptionsTitle, |
19 'passwordsExceptionsPage'); | 20 'passwordsExceptionsPage'); |
20 } | 21 } |
21 | 22 |
22 cr.addSingletonGetter(PasswordsExceptions); | 23 cr.addSingletonGetter(PasswordsExceptions); |
23 | 24 |
24 PasswordsExceptions.prototype = { | 25 PasswordsExceptions.prototype = { |
25 __proto__: OptionsPage.prototype, | 26 __proto__: OptionsPage.prototype, |
26 | 27 |
27 initializePage: function() { | 28 initializePage: function() { |
28 OptionsPage.prototype.initializePage.call(this); | 29 OptionsPage.prototype.initializePage.call(this); |
29 | 30 |
30 // TODO(sargrass): Add initialization here. | 31 // TODO(sargrass): Passwords filter page -------------------------- |
31 } | 32 |
| 33 // TODO(sargrass): Exceptions filter page ------------------------- |
| 34 |
| 35 }, |
32 }; | 36 }; |
33 | 37 |
34 // Export | 38 // Export |
35 return { | 39 return { |
36 PasswordsExceptions: PasswordsExceptions | 40 PasswordsExceptions: PasswordsExceptions |
37 }; | 41 }; |
38 | 42 |
39 }); | 43 }); |
40 | 44 |
OLD | NEW |