| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 /** | 5 /** |
| 6 * Enumeration for device state about remaining space. | 6 * Enumeration for device state about remaining space. |
| 7 * These values must be kept in sync with | 7 * These values must be kept in sync with |
| 8 * StorageManagerHandler::StorageSpaceState in C++ code. | 8 * StorageManagerHandler::StorageSpaceState in C++ code. |
| 9 * @enum {number} | 9 * @enum {number} |
| 10 * @const | 10 * @const |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 }; | 56 }; |
| 57 $('storage-manager-label-drive-cache').onclick = function() { | 57 $('storage-manager-label-drive-cache').onclick = function() { |
| 58 PageManager.showPageByName('storageClearDriveCache'); | 58 PageManager.showPageByName('storageClearDriveCache'); |
| 59 }; | 59 }; |
| 60 $('storage-manager-label-browsing-data').onclick = function() { | 60 $('storage-manager-label-browsing-data').onclick = function() { |
| 61 PageManager.showPageByName('clearBrowserData'); | 61 PageManager.showPageByName('clearBrowserData'); |
| 62 }; | 62 }; |
| 63 $('storage-manager-label-arc').onclick = function() { | 63 $('storage-manager-label-arc').onclick = function() { |
| 64 chrome.send('openArcStorage'); | 64 chrome.send('openArcStorage'); |
| 65 }; | 65 }; |
| 66 $('storage-manager-label-other-users').onclick = function() { |
| 67 PageManager.showPageByName('accounts'); |
| 68 }; |
| 66 | 69 |
| 67 $('storage-confirm').onclick = function() { | 70 $('storage-confirm').onclick = function() { |
| 68 PageManager.closeOverlay(); | 71 PageManager.closeOverlay(); |
| 69 }; | 72 }; |
| 70 }, | 73 }, |
| 71 | 74 |
| 72 /** @override */ | 75 /** @override */ |
| 73 didShowPage: function() { | 76 didShowPage: function() { |
| 74 // Updating storage information can be expensive (e.g. computing directory | 77 // Updating storage information can be expensive (e.g. computing directory |
| 75 // sizes recursively), so we delay this operation until the page is shown. | 78 // sizes recursively), so we delay this operation until the page is shown. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 'setDriveCacheSize', | 194 'setDriveCacheSize', |
| 192 'setOtherUsersSize', | 195 'setOtherUsersSize', |
| 193 'setSizeStat', | 196 'setSizeStat', |
| 194 'showArcItem', | 197 'showArcItem', |
| 195 ]); | 198 ]); |
| 196 | 199 |
| 197 return { | 200 return { |
| 198 StorageManager: StorageManager | 201 StorageManager: StorageManager |
| 199 }; | 202 }; |
| 200 }); | 203 }); |
| OLD | NEW |