From d47048b6fc87d531ca57ff2361db8fcb1425d46a Mon Sep 17 00:00:00 2001 From: "tbarzic@chromium.org" Date: Wed, 25 Jul 2012 04:48:31 +0000 Subject: Add support for drive files to chrome.fileBrowserHandler.selectFile first, we don't create file on disk when it is selected anymore (since we can't really know exact file path for drive files), we just setup permissions for the file. second, we have to give read permissions for drive cache paths as well in order to enable file reading. TEST=existing BUG=138089 Review URL: https://chromiumcodereview.appspot.com/10664002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148292 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/extensions/api/file_browser_handler.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/common/extensions/api/file_browser_handler.json') diff --git a/chrome/common/extensions/api/file_browser_handler.json b/chrome/common/extensions/api/file_browser_handler.json index 65209fd..a50c2f5 100644 --- a/chrome/common/extensions/api/file_browser_handler.json +++ b/chrome/common/extensions/api/file_browser_handler.json @@ -50,16 +50,16 @@ { "name": "selectFile", "type": "function", - "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 already existed, truncated. The function has to be called with a user gesture.", + "description": "Prompts user to select file path under which file should be saved. When the file is selected, file access permission required to use the file (read, write and create) are granted to the caller. The file will not actually get created during the functin call, so function caller must ensure its existance before using it. The function has to be invoked with a user gesture.", "parameters": [ { "name": "selectionParams", "type": "object", - "description": "Parameters that will be used to create a new file.", + "description": "Parameters that will be used while selecting the file.", "properties": { "suggestedName": { "type": "string", - "description": "Suggested name for the new file." + "description": "Suggested name for the file." } } }, @@ -75,7 +75,7 @@ "properties": { "success": { "type": "boolean", - "description": "Has the file been selected." + "description": "Whether the file has been selected." }, "entry": { "type": "object", -- cgit v1.1