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 namespace fileSystemProvider { | |
7 // TODO(satorux): Switch to DOMError once crbug.com/313131 is fixed. | |
8 // http://www.w3.org/TR/file-system-api/#errors-and-exceptions | |
9 dictionary Error { | |
10 // On success, the value is "OK". On error, one of names described at the | |
11 // following URL is set. | |
12 // http://www.w3.org/TR/file-system-api/#errors-and-exceptions | |
13 DOMString name; | |
14 | |
15 // Error message, that is present in case of a failure. | |
16 DOMString message; | |
17 }; | |
18 | |
19 // Callback to receive the result of mount() function. <code>error</code> | |
20 // indicates if the request was successful or not. See <code>Error</code> | |
21 // for details. | |
22 // | |
23 // On success, <code>fileSystemID</code> will be a unique ID for the file | |
24 // system just mounted. <code>fileSystemID</code> is undefined on error. | |
25 // The ID is used to distinguish multiple file systems mounted from a | |
26 // single File System Provider. | |
27 callback MountCallback = void(Error error, | |
28 DOMString fileSystemId); | |
not at google - send to devlin
2013/11/01 00:18:10
I understand why you want to do this - setting chr
satorux1
2013/11/01 01:02:04
That would be great but can we do that? Actually,
| |
29 | |
30 interface Functions { | |
31 // Mounts a file system with the given | |
32 // <code>displayName</code>. <code>displayName</code> will be shown in | |
33 // the left panel of Files.app. <code>displayName</code> can contain any | |
34 // characters including '/'. <code>displayName</code> should be | |
35 // descritive but doesn't have to be unique. Duplicate display names are | |
36 // uniquified by adding suffix like "(1)" in the Files.app UI. An empty | |
37 // display name is not allowed. | |
38 static void mount(DOMString displayName, | |
39 MountCallback callback); | |
40 }; | |
41 }; | |
OLD | NEW |