| 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 */ var OptionsPage = options.OptionsPage; | 6 /** @const */ var OptionsPage = options.OptionsPage; |
| 7 /** @const */ var SettingsDialog = options.SettingsDialog; | 7 /** @const */ var 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', | 15 SettingsDialog.call(this, 'homePageOverlay', |
| 16 templateData.homePageOverlayTabTitle, | 16 loadTimeData.getString('homePageOverlayTabTitle'), |
| 17 'home-page-overlay', | 17 'home-page-overlay', |
| 18 $('home-page-confirm'), $('home-page-cancel')); | 18 $('home-page-confirm'), $('home-page-cancel')); |
| 19 } | 19 } |
| 20 | 20 |
| 21 cr.addSingletonGetter(HomePageOverlay); | 21 cr.addSingletonGetter(HomePageOverlay); |
| 22 | 22 |
| 23 HomePageOverlay.prototype = { | 23 HomePageOverlay.prototype = { |
| 24 __proto__: SettingsDialog.prototype, | 24 __proto__: SettingsDialog.prototype, |
| 25 | 25 |
| 26 /** | 26 /** |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 HomePageOverlay.updateAutocompleteSuggestions = function() { | 148 HomePageOverlay.updateAutocompleteSuggestions = function() { |
| 149 var instance = HomePageOverlay.getInstance(); | 149 var instance = HomePageOverlay.getInstance(); |
| 150 instance.updateAutocompleteSuggestions_.apply(instance, arguments); | 150 instance.updateAutocompleteSuggestions_.apply(instance, arguments); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 // Export | 153 // Export |
| 154 return { | 154 return { |
| 155 HomePageOverlay: HomePageOverlay | 155 HomePageOverlay: HomePageOverlay |
| 156 }; | 156 }; |
| 157 }); | 157 }); |
| OLD | NEW |