| OLD | NEW |
| (Empty) | |
| 1 // Copyright 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 var Page = cr.ui.pageManager.Page; |
| 7 var PageManager = cr.ui.pageManager.PageManager; |
| 8 |
| 9 function StorageManager() { |
| 10 Page.call(this, 'storage', |
| 11 loadTimeData.getString('storageManagerPageTabTitle'), |
| 12 'storageManagerPage'); |
| 13 } |
| 14 |
| 15 cr.addSingletonGetter(StorageManager); |
| 16 |
| 17 StorageManager.prototype = { |
| 18 __proto__: Page.prototype, |
| 19 |
| 20 /** @override */ |
| 21 initializePage: function() { |
| 22 Page.prototype.initializePage.call(this); |
| 23 |
| 24 $('storage-confirm').onclick = function() { |
| 25 PageManager.closeOverlay(); |
| 26 }; |
| 27 } |
| 28 }; |
| 29 |
| 30 return { |
| 31 StorageManager: StorageManager |
| 32 }; |
| 33 }); |
| OLD | NEW |