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

Side by Side Diff: third_party/chrome/idl/file_browser_handler_internal.json

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months 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 (c) 2012 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 [
6 {
7 "namespace": "fileBrowserHandlerInternal",
8 "compiler_options": {
9 "implemented_in": "chrome/browser/chromeos/extensions/file_browser_handler _api.h"
10 },
11 "nodoc": true,
12 "internal": true,
13 "platforms": ["chromeos"],
14 "types": [
15 {
16 "id": "FileEntryInfo",
17 "type": "object",
18 "description": "Information needed to build a file entry that will be re turned through the API.",
19 "properties": {
20 "fileSystemName": {
21 "type": "string"
22 },
23 "fileSystemRoot": {
24 "type": "string"
25 },
26 "fileFullPath": {
27 "type": "string"
28 },
29 "fileIsDirectory": {
30 "type": "boolean"
31 }
32 }
33 }
34 ],
35
36 "functions": [
37 {
38 "name": "selectFile",
39 "type": "function",
40 "description": "Prompts user to select file path under which a new file will be created. If the user selects file, the file gets created or, if it alrea dy exists, truncated. The function has to be called with user gesture.",
41 "parameters": [
42 {
43 "name": "selectionParams",
44 "type": "object",
45 "description": "Parameters that will be used to create new file.",
46 "properties": {
47 "suggestedName": {
48 "type": "string",
49 "description": "Suggested name for the new file."
50 },
51 "allowedFileExtensions": {
52 "type": "array",
53 "items": { "type": "string" },
54 "optional": true,
55 "description": "List of file extensions that the selected file can have. The list is also used to specify what files to be shown in the select file dialog. Files with the listed extensions are only shown in the dialog. Ext ensions should not include the leading '.'. Example: ['jpg', 'png']"
56 }
57 }
58 },
59 {
60 "name": "callback",
61 "type": "function",
62 "description": "Function called upon completion.",
63 "parameters": [
64 {
65 "name": "result",
66 "description": "Result of the method.",
67 "type": "object",
68 "properties": {
69 "success": {
70 "type": "boolean",
71 "description": "Has the file been selected."
72 },
73 "entry": {
74 "$ref": "FileEntryInfo",
75 "optional": true,
76 "description": "Selected file entry."
77 }
78 }
79 }
80 ]
81 }
82 ]
83 }
84 ]
85 }
86 ]
OLDNEW
« no previous file with comments | « third_party/chrome/idl/file_browser_handler.json ('k') | third_party/chrome/idl/file_browser_private.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698