Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Side by Side Diff: chrome/common/extensions/api/image_writer_private.idl

Issue 27563002: Adds missing USB events to the imageWriterPrivate API definition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698