| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 /** | 6 /** |
| 7 * Encapsulated handling of the note overlay. | 7 * Encapsulated handling of the stylus overlay. |
| 8 * @constructor | 8 * @constructor |
| 9 * @extends {options.SettingsDialog} | 9 * @extends {options.SettingsDialog} |
| 10 */ | 10 */ |
| 11 function NoteOverlay() { | 11 function StylusOverlay() { |
| 12 options.SettingsDialog.call(this, 'note-overlay', | 12 options.SettingsDialog.call(this, 'stylus-overlay', |
| 13 loadTimeData.getString('noteOverlayTabTitle'), | 13 loadTimeData.getString('stylusOverlayTabTitle'), |
| 14 'note-overlay', | 14 'stylus-overlay', |
| 15 assertInstanceof($('note-confirm'), HTMLButtonElement), | 15 assertInstanceof($('stylus-confirm'), HTMLButtonElement), |
| 16 assertInstanceof($('note-cancel'), HTMLButtonElement)); | 16 assertInstanceof($('stylus-cancel'), HTMLButtonElement)); |
| 17 } | 17 } |
| 18 | 18 |
| 19 cr.addSingletonGetter(NoteOverlay); | 19 cr.addSingletonGetter(StylusOverlay); |
| 20 | 20 |
| 21 NoteOverlay.prototype = { | 21 StylusOverlay.prototype = { |
| 22 __proto__: options.SettingsDialog.prototype, | 22 __proto__: options.SettingsDialog.prototype, |
| 23 | 23 |
| 24 /** @override */ | 24 /** @override */ |
| 25 initializePage: function() { | 25 initializePage: function() { |
| 26 options.SettingsDialog.prototype.initializePage.call(this); | 26 options.SettingsDialog.prototype.initializePage.call(this); |
| 27 }, | 27 }, |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 // Export | 30 // Export |
| 31 return { | 31 return { |
| 32 NoteOverlay: NoteOverlay | 32 StylusOverlay: StylusOverlay |
| 33 }; | 33 }; |
| 34 }); | 34 }); |
| OLD | NEW |