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

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

Issue 2297043002: Web expose FileSystemFileEntry, FileSystemDirectoryEntry and friends (Closed)
Patch Set: Rebased Created 4 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
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 // 7 //
8 // See the design doc for a detailed description of this API. 8 // See the design doc for a detailed description of this API.
9 // https://goo.gl/KzMEFq 9 // https://goo.gl/KzMEFq
10 namespace imageWriterPrivate { 10 namespace imageWriterPrivate {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // Write an image to the disk, prompting the user to supply the image from 87 // Write an image to the disk, prompting the user to supply the image from
88 // a local file. The callback will be called when the entire operation 88 // a local file. The callback will be called when the entire operation
89 // completes, either successfully or on error. 89 // completes, either successfully or on error.
90 // 90 //
91 // |storageUnitId|: The identifier for the storage unit 91 // |storageUnitId|: The identifier for the storage unit
92 // |fileEntry|: The FileEntry object of the image to be burned. 92 // |fileEntry|: The FileEntry object of the image to be burned.
93 // |callback|: The callback which signifies that the write operation has 93 // |callback|: The callback which signifies that the write operation has
94 // been started by the system and provides a unique ID for this operation. 94 // been started by the system and provides a unique ID for this operation.
95 static void writeFromFile(DOMString storageUnitId, 95 static void writeFromFile(DOMString storageUnitId,
96 [instanceOf=FileEntry] object fileEntry, 96 [instanceOf=FileSystemFileEntry] object fileEntry,
97 WriteImageCallback callback); 97 WriteImageCallback callback);
98 98
99 // Cancel a current write operation. 99 // Cancel a current write operation.
100 // 100 //
101 // |callback|: The callback which is triggered with the write is 101 // |callback|: The callback which is triggered with the write is
102 // successfully cancelled, passing the $(ref:ProgressInfo) of the operation at 102 // successfully cancelled, passing the $(ref:ProgressInfo) of the operation at
103 // the time it was cancelled. 103 // the time it was cancelled.
104 static boolean cancelWrite(WriteCancelCallback callback); 104 static boolean cancelWrite(WriteCancelCallback callback);
105 105
106 // Destroys the partition table of a disk, effectively erasing it. This is 106 // Destroys the partition table of a disk, effectively erasing it. This is
(...skipping 27 matching lines...) Expand all
134 134
135 // Fires when a removable storage device is inserted. 135 // Fires when a removable storage device is inserted.
136 static void onDeviceInserted(RemovableStorageDevice device); 136 static void onDeviceInserted(RemovableStorageDevice device);
137 137
138 // Fires when a removable storage device is removed. 138 // Fires when a removable storage device is removed.
139 static void onDeviceRemoved(RemovableStorageDevice device); 139 static void onDeviceRemoved(RemovableStorageDevice device);
140 }; 140 };
141 141
142 }; 142 };
143 143
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/file_system.idl ('k') | chrome/common/extensions/api/log_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698