OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 cr.define('options', function() { | |
6 var OptionsPage = options.OptionsPage; | |
7 | |
8 function SessionRestoreOverlay() { | |
9 OptionsPage.call(this, 'sessionRestoreOverlay', | |
10 loadTimeData.getString('sessionRestoreOverlayTitle'), | |
11 'sessionRestoreOverlay'); | |
12 }; | |
13 | |
14 cr.addSingletonGetter(SessionRestoreOverlay); | |
15 | |
16 SessionRestoreOverlay.prototype = { | |
17 // Inherit from OptionsPage. | |
18 __proto__: OptionsPage.prototype, | |
19 | |
20 initializePage: function() { | |
21 OptionsPage.prototype.initializePage.call(this); | |
22 | |
23 $('sessionRestoreOverlayCancel').onclick = function() { | |
24 BrowserOptions.getInstance().sessionRestoreDialogCancel(); | |
25 OptionsPage.closeOverlay(); | |
26 }; | |
27 | |
28 $('sessionRestoreOverlayOk').onclick = function() { | |
29 BrowserOptions.getInstance().sessionRestoreDialogOk(); | |
30 OptionsPage.closeOverlay(); | |
31 }; | |
32 }, | |
33 }; | |
34 | |
35 // Export | |
36 return { | |
37 SessionRestoreOverlay: SessionRestoreOverlay | |
38 }; | |
39 }); | |
OLD | NEW |