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 "nodoc": "true", | 8 "nodoc": "true", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 "name": "result", | 925 "name": "result", |
926 "type": "object", | 926 "type": "object", |
927 "properties": { | 927 "properties": { |
928 "type": {"type": "string"}, | 928 "type": {"type": "string"}, |
929 "online": {"type": "boolean"} | 929 "online": {"type": "boolean"} |
930 } | 930 } |
931 } | 931 } |
932 ] | 932 ] |
933 } | 933 } |
934 ] | 934 ] |
| 935 }, |
| 936 { |
| 937 "name": "requestDirectoryRefresh", |
| 938 "description": "Requests a refresh of a directory. Used to get the lates
t metadata of files in a particular directory. Upon completion, onFileChanged ev
ent is raised against the target directory, so that the file browser can redraw
contents in the directory. Note that the onFileChanged event can be raised even
if there is no change in the directory as it's expensive to check if the new con
tents match the existing ones.", |
| 939 "parameters": [ |
| 940 { |
| 941 "name": "fileURL", |
| 942 "type": "string", |
| 943 "description": "URL of the target directory" |
| 944 } |
| 945 ] |
935 } | 946 } |
936 ], | 947 ], |
937 "events": [ | 948 "events": [ |
938 { | 949 { |
939 "name": "onDiskChanged", | 950 "name": "onDiskChanged", |
940 "type": "function", | 951 "type": "function", |
941 "description": "Fired when disk mount/unmount event is detected.", | 952 "description": "Fired when disk mount/unmount event is detected.", |
942 "parameters": [ | 953 "parameters": [ |
943 { | 954 { |
944 "$ref": "MountEvent", | 955 "$ref": "MountEvent", |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 }, | 1015 }, |
1005 { | 1016 { |
1006 "name": "onNetworkConnectionChanged", | 1017 "name": "onNetworkConnectionChanged", |
1007 "type": "function", | 1018 "type": "function", |
1008 "description": "Fired when the active network connection state changes.
The network connection state can be retrieved via 'getNetworkConnectionState'.", | 1019 "description": "Fired when the active network connection state changes.
The network connection state can be retrieved via 'getNetworkConnectionState'.", |
1009 "parameters": [] | 1020 "parameters": [] |
1010 } | 1021 } |
1011 ] | 1022 ] |
1012 } | 1023 } |
1013 ] | 1024 ] |
OLD | NEW |