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

Side by Side Diff: chrome/common/extensions/api/file_browser_handler.json

Issue 10664002: Add support for drive files to chrome.fileBrowserHandler.selectFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 5 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace":"fileBrowserHandler", 7 "namespace":"fileBrowserHandler",
8 "platforms": ["chromeos"], 8 "platforms": ["chromeos"],
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 "description": "File handler execute event details." 43 "description": "File handler execute event details."
44 } 44 }
45 ] 45 ]
46 } 46 }
47 ], 47 ],
48 48
49 "functions": [ 49 "functions": [
50 { 50 {
51 "name": "selectFile", 51 "name": "selectFile",
52 "type": "function", 52 "type": "function",
53 "description": "Prompts user to select file path under which a new file will be created. When the user selects file, the file gets created or, if it alr eady existed, truncated. The function has to be called with a user gesture.", 53 "description": "Prompts user to select file path under which file should be saved. The file will not actually get created during the functin call, so fu nction caller must ensure its existance before using it. The function has to be invoked with a user gesture.",
54 "parameters": [ 54 "parameters": [
55 { 55 {
56 "name": "selectionParams", 56 "name": "selectionParams",
57 "type": "object", 57 "type": "object",
58 "description": "Parameters that will be used to create a new file.", 58 "description": "Parameters that will be used while selecting the fil e.",
59 "properties": { 59 "properties": {
60 "suggestedName": { 60 "suggestedName": {
61 "type": "string", 61 "type": "string",
62 "description": "Suggested name for the new file." 62 "description": "Suggested name for the file."
63 } 63 }
64 } 64 }
65 }, 65 },
66 { 66 {
67 "name": "callback", 67 "name": "callback",
68 "type": "function", 68 "type": "function",
69 "description": "Function called upon completion.", 69 "description": "Function called upon completion.",
70 "parameters": [ 70 "parameters": [
71 { 71 {
72 "name": "result", 72 "name": "result",
73 "description": "Result of the method.", 73 "description": "Result of the method.",
74 "type": "object", 74 "type": "object",
75 "properties": { 75 "properties": {
76 "success": { 76 "success": {
77 "type": "boolean", 77 "type": "boolean",
78 "description": "Has the file been selected." 78 "description": "Whether the file has been selected."
79 }, 79 },
80 "entry": { 80 "entry": {
81 "type": "object", 81 "type": "object",
82 "constructor": "Entry", 82 "constructor": "Entry",
83 "optional": true, 83 "optional": true,
84 "description": "Selected file entry. It will be null if a fi le hasn't been selected." 84 "description": "Selected file entry. It will be null if a fi le hasn't been selected."
85 } 85 }
86 } 86 }
87 } 87 }
88 ] 88 ]
89 } 89 }
90 ] 90 ]
91 } 91 }
92 ] 92 ]
93 } 93 }
94 ] 94 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698