| 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 var SettingsDialog = options.SettingsDialog; | 6 var SettingsDialog = options.SettingsDialog; |
| 7 | 7 |
| 8 /* | 8 /* |
| 9 * SpellingConfirmOverlay class | 9 * SpellingConfirmOverlay class |
| 10 * Dialog to confirm that the user really wants to use the Spelling service | 10 * Dialog to confirm that the user really wants to use the Spelling service |
| 11 * @extends {SettingsDialog} | 11 * @extends {SettingsDialog} |
| 12 */ | 12 */ |
| 13 function SpellingConfirmOverlay() { | 13 function SpellingConfirmOverlay() { |
| 14 SettingsDialog.call(this, | 14 SettingsDialog.call(this, |
| 15 'spellingConfirm', | 15 'spellingConfirm', |
| 16 templateData.spellingConfirmTitle, | 16 loadTimeData.getString('spellingConfirmTitle'), |
| 17 'spelling-confirm-overlay', | 17 'spelling-confirm-overlay', |
| 18 $('spelling-confirm-ok'), | 18 $('spelling-confirm-ok'), |
| 19 $('spelling-confirm-cancel')); | 19 $('spelling-confirm-cancel')); |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 cr.addSingletonGetter(SpellingConfirmOverlay); | 22 cr.addSingletonGetter(SpellingConfirmOverlay); |
| 23 | 23 |
| 24 SpellingConfirmOverlay.prototype = { | 24 SpellingConfirmOverlay.prototype = { |
| 25 __proto__: SettingsDialog.prototype, | 25 __proto__: SettingsDialog.prototype, |
| 26 | 26 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 41 SettingsDialog.prototype.handleCancel.call(this); | 41 SettingsDialog.prototype.handleCancel.call(this); |
| 42 $('spelling-enabled-control').checked = false; | 42 $('spelling-enabled-control').checked = false; |
| 43 }, | 43 }, |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 // Export | 46 // Export |
| 47 return { | 47 return { |
| 48 SpellingConfirmOverlay: SpellingConfirmOverlay | 48 SpellingConfirmOverlay: SpellingConfirmOverlay |
| 49 }; | 49 }; |
| 50 }); | 50 }); |
| OLD | NEW |