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.image_writer</code> API to write images to | 5 // Use the <code>chrome.image_writer</code> API to write images to |
6 // removable media. | 6 // removable media. |
7 [nodoc] namespace imageWriterPrivate { | 7 [nodoc] namespace imageWriterPrivate { |
8 // The different stages of a write call. | 8 // The different stages of a write call. |
9 // | 9 // |
10 // <dl> | 10 // <dl> |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // List all the removable block devices currently attached to the system. | 112 // List all the removable block devices currently attached to the system. |
113 // |callback|: A callback called with a list of removable storage devices | 113 // |callback|: A callback called with a list of removable storage devices |
114 static void listRemovableStorageDevices( | 114 static void listRemovableStorageDevices( |
115 ListRemovableStorageDevicesCallback callback); | 115 ListRemovableStorageDevicesCallback callback); |
116 }; | 116 }; |
117 | 117 |
118 interface Events { | 118 interface Events { |
119 // Fires periodically throughout the writing operation and at least once per | 119 // Fires periodically throughout the writing operation and at least once per |
120 // stage. | 120 // stage. |
121 static void onWriteProgress(ProgressInfo info); | 121 static void onWriteProgress(ProgressInfo info); |
| 122 |
122 // Fires when the write operation has completely finished, such as all | 123 // Fires when the write operation has completely finished, such as all |
123 // devices being finalized and resources released. | 124 // devices being finalized and resources released. |
124 static void onWriteComplete(); | 125 static void onWriteComplete(); |
| 126 |
125 // Fires when an error occured during writing, passing the $ref:ProgressInfo | 127 // Fires when an error occured during writing, passing the $ref:ProgressInfo |
126 // of the operation at the time the error occured. | 128 // of the operation at the time the error occured. |
127 static void onWriteError(ProgressInfo info, DOMString error); | 129 static void onWriteError(ProgressInfo info, DOMString error); |
| 130 |
| 131 // Fires when a removable storage device is inserted. |
| 132 static void onDeviceInserted(RemovableStorageDevice device); |
| 133 |
| 134 // Fires when a removable storage device is removed. |
| 135 static void onDeviceRemoved(RemovableStorageDevice device); |
128 }; | 136 }; |
129 | 137 |
130 }; | 138 }; |
131 | 139 |
OLD | NEW |