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.
7 "namespace": "fileBrowserHandlerInternal",
9 "implemented_in": "chrome/browser/chromeos/extensions/file_manager/file_browser_handler_api.h"
11 "description": "none",
12 "platforms": ["chromeos"],
15 "id": "FileEntryInfo",
17 "description": "Information needed to build a file entry that will be returned through the API.",
39 "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 already exists, truncated. The function has to be called with user gesture.",
42 "name": "selectionParams",
44 "description": "Parameters that will be used to create new file.",
48 "description": "Suggested name for the new file."
50 "allowedFileExtensions": {
52 "items": { "type": "string" },
54 "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. Extensions should not include the leading '.'. Example: ['jpg', 'png']"
61 "description": "Function called upon completion.",
65 "description": "Result of the method.",
70 "description": "Has the file been selected."
73 "$ref": "FileEntryInfo",
75 "description": "Selected file entry."