OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 cr.define('options', function() { | |
6 /** | |
7 * Encapsulated handling of the note overlay. | |
8 * @constructor | |
9 * @extends {options.SettingsDialog} | |
10 */ | |
11 function NoteOverlay() { | |
12 options.SettingsDialog.call(this, 'note-overlay', | |
13 loadTimeData.getString('noteOverlayTabTitle'), | |
14 'note-overlay', | |
15 assertInstanceof($('note-confirm'), HTMLButtonElement), | |
16 assertInstanceof($('note-cancel'), HTMLButtonElement)); | |
17 } | |
18 | |
19 cr.addSingletonGetter(NoteOverlay); | |
20 | |
21 NoteOverlay.prototype = { | |
22 __proto__: options.SettingsDialog.prototype, | |
23 | |
24 /** @override */ | |
25 initializePage: function() { | |
26 options.SettingsDialog.prototype.initializePage.call(this); | |
27 }, | |
28 }; | |
29 | |
30 // Export | |
31 return { | |
32 NoteOverlay: NoteOverlay | |
33 }; | |
34 }); | |
OLD | NEW |