OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // |
| 6 // PersonalOptions class |
| 7 // Encapsulated handling of personal options page. |
| 8 // |
| 9 function PersonalOptions(model) { |
| 10 OptionsPage.call(this, 'personal', templateData.personalPage, 'personalPage'); |
| 11 } |
| 12 |
| 13 PersonalOptions.getInstance = function() { |
| 14 if (!PersonalOptions.instance_) { |
| 15 PersonalOptions.instance_ = new PersonalOptions(null); |
| 16 } |
| 17 return PersonalOptions.instance_; |
| 18 } |
| 19 |
| 20 PersonalOptions.prototype = { |
| 21 // Inherit PersonalOptions from OptionsPage. |
| 22 __proto__: OptionsPage.prototype, |
| 23 |
| 24 // Initialize PersonalOptions page. |
| 25 initializePage: function() { |
| 26 // Call base class implementation to starts preference initialization. |
| 27 OptionsPage.prototype.initializePage.call(this); |
| 28 |
| 29 // TODO(csilv): add any needed initialization here or delete this method. |
| 30 }, |
| 31 }; |
| 32 |
OLD | NEW |