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":"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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 { | 419 { |
420 "name": "executeTask", | 420 "name": "executeTask", |
421 "description": "Executes file browser task over selected files", | 421 "description": "Executes file browser task over selected files", |
422 "parameters": [ | 422 "parameters": [ |
423 { | 423 { |
424 "name": "taskId", | 424 "name": "taskId", |
425 "type": "string", | 425 "type": "string", |
426 "description": "The unique identifier of task to execute." | 426 "description": "The unique identifier of task to execute." |
427 }, | 427 }, |
428 { | 428 { |
429 "name": "fileURLs", | 429 "name": "fileUrls", |
430 "type": "array", | 430 "type": "array", |
431 "description": "Array of file URLs", | 431 "description": "Array of file URLs", |
432 "items": { "type": "string" } | 432 "items": { "type": "string" } |
433 }, | 433 }, |
434 { | 434 { |
435 "name": "callback", | 435 "name": "callback", |
436 "type": "function", | 436 "type": "function", |
437 "optional": true, | 437 "optional": true, |
438 "parameters": [ | 438 "parameters": [ |
439 { | 439 { |
440 "name": "success", | 440 "name": "success", |
441 "type": "boolean", | 441 "type": "boolean", |
442 "optional": true, | 442 "optional": true, |
443 "description": "True of task execution was successfully initiate
d." | 443 "description": "True of task execution was successfully initiate
d." |
444 } | 444 } |
445 ] | 445 ] |
446 } | 446 } |
447 ] | 447 ] |
448 }, | 448 }, |
449 { | 449 { |
450 "name": "setDefaultTask", | 450 "name": "setDefaultTask", |
451 "description": "Sets the default task for the supplied MIME types and su
ffixes of the supplied file URLs. Lists of MIME types and URLs may contain dupli
cates.", | 451 "description": "Sets the default task for the supplied MIME types and su
ffixes of the supplied file URLs. Lists of MIME types and URLs may contain dupli
cates.", |
452 "parameters": [ | 452 "parameters": [ |
453 { | 453 { |
454 "name": "taskId", | 454 "name": "taskId", |
455 "type": "string", | 455 "type": "string", |
456 "description": "The unique identifier of task to mark as default." | 456 "description": "The unique identifier of task to mark as default." |
457 }, | 457 }, |
458 { | 458 { |
459 "name": "fileURLs", | 459 "name": "fileUrls", |
460 "type": "array", | 460 "type": "array", |
461 "description": "Array of selected file URLs to extract suffixes from
.", | 461 "description": "Array of selected file URLs to extract suffixes from
.", |
462 "items": { "type": "string" } | 462 "items": { "type": "string" } |
463 }, | 463 }, |
464 { | 464 { |
465 "name": "mimeTypes", | 465 "name": "mimeTypes", |
466 "type": "array", | 466 "type": "array", |
467 "optional": true, | 467 "optional": true, |
468 "description": "Array of selected file MIME types.", | 468 "description": "Array of selected file MIME types.", |
469 "items": { "type": "string" } | 469 "items": { "type": "string" } |
470 }, | 470 }, |
471 { | 471 { |
472 "name": "callback", | 472 "name": "callback", |
473 "type": "function", | 473 "type": "function", |
474 "optional": true, | 474 "optional": true, |
475 "parameters": [] | 475 "parameters": [] |
476 } | 476 } |
477 ] | 477 ] |
478 }, | 478 }, |
479 { | 479 { |
480 "name": "getFileTasks", | 480 "name": "getFileTasks", |
481 "description": "Gets the list of tasks that can be performed over select
ed files.", | 481 "description": "Gets the list of tasks that can be performed over select
ed files.", |
482 "parameters": [ | 482 "parameters": [ |
483 { | 483 { |
484 "name": "fileURLs", | 484 "name": "fileUrls", |
485 "type": "array", | 485 "type": "array", |
486 "description": "Array of selected file URLs", | 486 "description": "Array of selected file URLs", |
487 "items": { "type": "string" } | 487 "items": { "type": "string" } |
488 }, | 488 }, |
489 { | 489 { |
490 "name": "mimeTypes", | 490 "name": "mimeTypes", |
491 "type": "array", | 491 "type": "array", |
492 "description": "Array of selected file MIME types", | 492 "description": "Array of selected file MIME types", |
493 "items": { "type": "string" } | 493 "items": { "type": "string" } |
494 }, | 494 }, |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 }, | 1322 }, |
1323 { | 1323 { |
1324 "name": "onDriveConnectionStatusChanged", | 1324 "name": "onDriveConnectionStatusChanged", |
1325 "type": "function", | 1325 "type": "function", |
1326 "description": "Fired when the active network connection state changes.
The network connection state can be retrieved via 'getDriveConnectionState'.", | 1326 "description": "Fired when the active network connection state changes.
The network connection state can be retrieved via 'getDriveConnectionState'.", |
1327 "parameters": [] | 1327 "parameters": [] |
1328 } | 1328 } |
1329 ] | 1329 ] |
1330 } | 1330 } |
1331 ] | 1331 ] |
OLD | NEW |