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 const OptionsPage = options.OptionsPage; | 6 const OptionsPage = options.OptionsPage; |
7 const SettingsDialog = options.SettingsDialog; | 7 const SettingsDialog = options.SettingsDialog; |
8 | 8 |
9 /** | 9 /** |
10 * HomePageOverlay class | 10 * HomePageOverlay class |
11 * Dialog that allows users to set the home page. | 11 * Dialog that allows users to set the home page. |
12 * @extends {SettingsDialog} | 12 * @extends {SettingsDialog} |
13 */ | 13 */ |
14 function HomePageOverlay() { | 14 function HomePageOverlay() { |
15 SettingsDialog.call(this, 'homePageOverlay', '', 'home-page-overlay', | 15 SettingsDialog.call(this, 'homePageOverlay', |
| 16 templateData.homePageOverlayTabTitle, |
| 17 'home-page-overlay', |
16 $('home-page-confirm'), $('home-page-cancel')); | 18 $('home-page-confirm'), $('home-page-cancel')); |
17 } | 19 } |
18 | 20 |
19 cr.addSingletonGetter(HomePageOverlay); | 21 cr.addSingletonGetter(HomePageOverlay); |
20 | 22 |
21 HomePageOverlay.prototype = { | 23 HomePageOverlay.prototype = { |
22 __proto__: SettingsDialog.prototype, | 24 __proto__: SettingsDialog.prototype, |
23 | 25 |
24 /** | 26 /** |
25 * Initialize the page. | 27 * Initialize the page. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 var homepageUseURL = $('homepage-use-url'); | 63 var homepageUseURL = $('homepage-use-url'); |
62 homepageInput.setDisabled('radio-choice', !homepageUseURL.checked); | 64 homepageInput.setDisabled('radio-choice', !homepageUseURL.checked); |
63 }, | 65 }, |
64 }; | 66 }; |
65 | 67 |
66 // Export | 68 // Export |
67 return { | 69 return { |
68 HomePageOverlay: HomePageOverlay | 70 HomePageOverlay: HomePageOverlay |
69 }; | 71 }; |
70 }); | 72 }); |
OLD | NEW |