| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // Use the <code>chrome.system.storage</code> API to query storage device | 5 // Use the <code>chrome.system.storage</code> API to query storage device |
| 6 // information and be notified when a removable storage device is attached and | 6 // information and be notified when a removable storage device is attached and |
| 7 // detached. | 7 // detached. |
| 8 namespace system.storage { | 8 [use_movable_types=true] namespace system.storage { |
| 9 | 9 |
| 10 enum StorageUnitType { | 10 enum StorageUnitType { |
| 11 // The storage has fixed media, e.g. hard disk or SSD. | 11 // The storage has fixed media, e.g. hard disk or SSD. |
| 12 fixed, | 12 fixed, |
| 13 // The storage is removable, e.g. USB flash drive. | 13 // The storage is removable, e.g. USB flash drive. |
| 14 removable, | 14 removable, |
| 15 // The storage type is unknown. | 15 // The storage type is unknown. |
| 16 unknown | 16 unknown |
| 17 }; | 17 }; |
| 18 | 18 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 interface Events { | 75 interface Events { |
| 76 // Fired when a new removable storage is attached to the system. | 76 // Fired when a new removable storage is attached to the system. |
| 77 static void onAttached(StorageUnitInfo info); | 77 static void onAttached(StorageUnitInfo info); |
| 78 | 78 |
| 79 // Fired when a removable storage is detached from the system. | 79 // Fired when a removable storage is detached from the system. |
| 80 static void onDetached(DOMString id); | 80 static void onDetached(DOMString id); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 }; | 83 }; |
| OLD | NEW |