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 // BrowserOptions class |
| 7 // Encapsulated handling of browser options page. |
| 8 // |
| 9 function BrowserOptions(model) { |
| 10 OptionsPage.call(this, 'browser', templateData.browserPage, 'browserPage'); |
| 11 } |
| 12 |
| 13 BrowserOptions.getInstance = function() { |
| 14 if (!BrowserOptions.instance_) { |
| 15 BrowserOptions.instance_ = new BrowserOptions(null); |
| 16 } |
| 17 return BrowserOptions.instance_; |
| 18 } |
| 19 |
| 20 BrowserOptions.prototype = { |
| 21 // Inherit BrowserOptions from OptionsPage. |
| 22 __proto__: OptionsPage.prototype, |
| 23 |
| 24 // Initialize BrowserOptions 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 |