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

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

Issue 50703013: fileSystemProvider: First cut at implementing fileSystemProvider API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments 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 | Annotate | Revision Log
OLDNEW
(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 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/permissions/chrome_api_permissions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698