Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 { |
| 11 "id": "FileHandlerExecuteEventDetails", | 11 "id": "FileHandlerExecuteEventDetails", |
| 12 "type": "object", | 12 "type": "object", |
| 13 "description": "Event details payload for fileBrowserHandler.onExecute e vent.", | 13 "description": "Event details payload for fileBrowserHandler.onExecute e vent.", |
| 14 "properties": { | 14 "properties": { |
| 15 "entries": { | 15 "entries": { |
| 16 "type": "array", | 16 "type": "array", |
| 17 "items": { "type": "any" }, | 17 "items": { "type": "any" }, |
| 18 "description": "Array of Entry instances representing files that are targets of this action (selected in ChromeOS file browser)." | 18 "description": "Array of Entry instances representing files that are targets of this action (selected in ChromeOS file browser)." |
| 19 }, | 19 }, |
| 20 "tab_id" : { | 20 "tab_id" : { |
|
Matt Perry
2013/03/01 22:15:16
oops - this should use a javaScriptStyle name.
wh
Zachary Kuznia
2013/03/04 06:09:43
Bug filed: crbug.com/179767
| |
| 21 "type": "integer", | 21 "type": "integer", |
| 22 "optional": true, | 22 "optional": true, |
| 23 "description": "The ID of the tab that raised this event. Tab IDs ar e unique within a browser session." | 23 "description": "The ID of the tab that raised this event. Tab IDs ar e unique within a browser session." |
| 24 } | 24 } |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 ], | 27 ], |
| 28 | 28 |
| 29 "events": [ | 29 "events": [ |
| 30 { | 30 { |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 48 "name": "onExecuteContentHandler", | 48 "name": "onExecuteContentHandler", |
| 49 "type": "function", | 49 "type": "function", |
| 50 "description": "Fired when a resource is fetched which matches a mime ty pe handled by this extension. The resource request is cancelled, and the extensi on is expected to handle the request. The event is restricted to a small number of white-listed fileBrowserHandlers.", | 50 "description": "Fired when a resource is fetched which matches a mime ty pe handled by this extension. The resource request is cancelled, and the extensi on is expected to handle the request. The event is restricted to a small number of white-listed fileBrowserHandlers.", |
| 51 "parameters": [ | 51 "parameters": [ |
| 52 { | 52 { |
| 53 "name": "mime_type", | 53 "name": "mime_type", |
| 54 "type": "string", | 54 "type": "string", |
| 55 "description": "The MIME type of the intercepted URL request." | 55 "description": "The MIME type of the intercepted URL request." |
| 56 }, | 56 }, |
| 57 { | 57 { |
| 58 "name": "original_url", | |
|
Matt Perry
2013/03/01 22:15:16
these should all be javaScriptStyle as well. Since
Zachary Kuznia
2013/03/04 06:09:43
Actually, I meant to remove this API, since it's b
| |
| 59 "type": "string", | |
| 60 "description": "The original URL that was intercepted." | |
| 61 }, | |
| 62 { | |
| 58 "name": "content_url", | 63 "name": "content_url", |
| 59 "type": "string", | 64 "type": "string", |
| 60 "description": "The intercepted URL request. The handler should fetc h and handle data referenced by the URL." | 65 "description": "The intercepted URL request. The handler should fetc h and handle data referenced by the URL." |
| 61 } | 66 } |
| 62 ] | 67 ] |
| 63 } | 68 } |
| 64 ], | 69 ], |
| 65 | 70 |
| 66 "functions": [ | 71 "functions": [ |
| 67 { | 72 { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 109 } | 114 } |
| 110 } | 115 } |
| 111 } | 116 } |
| 112 ] | 117 ] |
| 113 } | 118 } |
| 114 ] | 119 ] |
| 115 } | 120 } |
| 116 ] | 121 ] |
| 117 } | 122 } |
| 118 ] | 123 ] |
| OLD | NEW |