| 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 * InstantConfirmOverlay class | 9 * InstantConfirmOverlay class |
| 10 * Dialog to confirm that the user really wants to enable Chrome Instant. | 10 * Dialog to confirm that the user really wants to enable Chrome Instant. |
| 11 * @extends {SettingsDialog} | 11 * @extends {SettingsDialog} |
| 12 */ | 12 */ |
| 13 function InstantConfirmOverlay() { | 13 function InstantConfirmOverlay() { |
| 14 SettingsDialog.call(this, | 14 SettingsDialog.call(this, |
| 15 'instantConfirm', | 15 'instantConfirm', |
| 16 templateData.instantConfirmTitle, | 16 loadTimeData.getString('instantConfirmTitle'), |
| 17 'instantConfirmOverlay', | 17 'instantConfirmOverlay', |
| 18 $('instantConfirmOk'), | 18 $('instantConfirmOk'), |
| 19 $('instantConfirmCancel')); | 19 $('instantConfirmCancel')); |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 cr.addSingletonGetter(InstantConfirmOverlay); | 22 cr.addSingletonGetter(InstantConfirmOverlay); |
| 23 | 23 |
| 24 InstantConfirmOverlay.prototype = { | 24 InstantConfirmOverlay.prototype = { |
| 25 __proto__: SettingsDialog.prototype, | 25 __proto__: SettingsDialog.prototype, |
| 26 | 26 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 40 SettingsDialog.prototype.handleCancel.call(this); | 40 SettingsDialog.prototype.handleCancel.call(this); |
| 41 $('instant-enabled-control').checked = false; | 41 $('instant-enabled-control').checked = false; |
| 42 }, | 42 }, |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 // Export | 45 // Export |
| 46 return { | 46 return { |
| 47 InstantConfirmOverlay: InstantConfirmOverlay | 47 InstantConfirmOverlay: InstantConfirmOverlay |
| 48 }; | 48 }; |
| 49 }); | 49 }); |
| OLD | NEW |