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 namespace system.storage { |
9 | 9 |
10 enum StorageUnitType { | 10 enum StorageUnitType { |
(...skipping 63 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 |