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

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

Issue 23882004: file_manager: Remove MountEvent and VolumeInfo types from private API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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":"fileBrowserPrivate", 7 "namespace":"fileBrowserPrivate",
8 "compiler_options": { 8 "compiler_options": {
9 "implemented_in": "chrome/browser/chromeos/extensions/file_manager/file_br owser_private_api_functions.h" 9 "implemented_in": "chrome/browser/chromeos/extensions/file_manager/file_br owser_private_api_functions.h"
10 }, 10 },
(...skipping 21 matching lines...) Expand all
32 "type": "boolean", 32 "type": "boolean",
33 "description": "True if this is Drive App." 33 "description": "True if this is Drive App."
34 }, 34 },
35 "isDefault": { 35 "isDefault": {
36 "type": "boolean", 36 "type": "boolean",
37 "description": "True if this task is a default task for the selected files." 37 "description": "True if this task is a default task for the selected files."
38 } 38 }
39 } 39 }
40 }, 40 },
41 { 41 {
42 "id": "VolumeInfo",
43 "type": "object",
44 "description": "Mounted disk volume information.",
45 "properties": {
46 "mountPath": {
47 "type": "string",
48 "description": "Disk volume mount point path. The value corresponds to its Entry.fullPath in File API."
49 },
50 "devicePath": {
51 "type": "string",
52 "description": "Disk volume device path."
53 },
54 "label": {
55 "type": "string",
56 "description": "Volume label."
57 },
58 "deviceType": {
59 "type": "string",
60 "enum": ["sd", "usb", "optical", "mobile", "unknown"],
61 "description": "Device type."
62 },
63 "readOnly": {
64 "type": "boolean",
65 "description": "Flag that specifies if volume is mounted in read-onl y mode."
66 },
67 "totalSize": {
68 "type": "number",
69 "description": "Approximated total disk volume size in bytes."
70 }
71 }
72 },
73 {
74 "id": "DriveEntryProperties", 42 "id": "DriveEntryProperties",
75 "type": "object", 43 "type": "object",
76 "description": "Drive file properties.", 44 "description": "Drive file properties.",
77 "properties": { 45 "properties": {
78 "fileUrl": { 46 "fileUrl": {
79 "type": "string", 47 "type": "string",
80 "optional": true, 48 "optional": true,
81 "description": "the URL given for this file." 49 "description": "the URL given for this file."
82 }, 50 },
83 "thumbnailUrl": { 51 "thumbnailUrl": {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 "description": "Flag that specifies if volume is on boot device." 197 "description": "Flag that specifies if volume is on boot device."
230 }, 198 },
231 "totalSize": { 199 "totalSize": {
232 "type": "integer", 200 "type": "integer",
233 "optional": true, 201 "optional": true,
234 "description": "Total disk volume size." 202 "description": "Total disk volume size."
235 } 203 }
236 } 204 }
237 }, 205 },
238 { 206 {
239 "id": "MountEvent",
240 "type": "object",
241 "description": "Payload data for disk mount / unmount event.",
242 "properties": {
243 "eventType": {
244 "type": "string",
245 "enum": ["added", "removed"],
246 "description": "Event type that tells listeners which disk volume ev en was raised."
247 },
248 "volumeInfo": {
249 "$ref": "VolumeInfo",
250 "description":"Volume information that this mount event applies to."
251 }
252 }
253 },
254 {
255 "id": "MountCompletedEvent", 207 "id": "MountCompletedEvent",
256 "type": "object", 208 "type": "object",
257 "description": "Payload data for mount event.", 209 "description": "Payload data for mount event.",
258 "properties": { 210 "properties": {
259 "eventType": { 211 "eventType": {
260 "type": "string", 212 "type": "string",
261 "enum": ["mount", "unmount"], 213 "enum": ["mount", "unmount"],
262 "description": "Is the event raised for mounting or unmounting." 214 "description": "Is the event raised for mounting or unmounting."
263 }, 215 },
264 "status": { 216 "status": {
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 }, 1274 },
1323 { 1275 {
1324 "name": "onDriveConnectionStatusChanged", 1276 "name": "onDriveConnectionStatusChanged",
1325 "type": "function", 1277 "type": "function",
1326 "description": "Fired when the active network connection state changes. The network connection state can be retrieved via 'getDriveConnectionState'.", 1278 "description": "Fired when the active network connection state changes. The network connection state can be retrieved via 'getDriveConnectionState'.",
1327 "parameters": [] 1279 "parameters": []
1328 } 1280 }
1329 ] 1281 ]
1330 } 1282 }
1331 ] 1283 ]
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698