OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 [platforms=("chromeos"), |
| 6 implemented_in="chrome/browser/chromeos/extensions/file_system_provider/file_sy
stem_provider_api.h"] |
| 7 namespace fileSystemProvider { |
| 8 // Callback to receive the result of mount() function. |
| 9 // <code>fileSystemID</code> will be a unique ID for the file system just |
| 10 // mounted. The ID is used to distinguish multiple file systems mounted |
| 11 // from a single File System Provider. |
| 12 callback MountCallback = void(DOMString fileSystemId, |
| 13 [nodoc, instanceOf=DOMError] object error); |
| 14 |
| 15 // Callback to handle an error raised from the browser. |
| 16 [nocompile] callback ErrorCallback = void([instanceOf=DOMError] object error); |
| 17 |
| 18 interface Functions { |
| 19 // Mounts a file system with the given <code>displayName</code>. |
| 20 // <code>displayName</code> will be shown in the left panel of |
| 21 // Files.app. <code>displayName</code> can contain any characters |
| 22 // including '/', but cannot be an empty string. <code>displayName</code> |
| 23 // should be descritive but doesn't have to be unique. Duplicate display |
| 24 // names are uniquified by adding suffix like "(1)" in the Files.app UI. |
| 25 static void mount(DOMString displayName, |
| 26 MountCallback successCallback, |
| 27 [nocompile] ErrorCallback errorCallback); |
| 28 }; |
| 29 }; |
OLD | NEW |