OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // fileManagerPrivate API. | 5 // fileManagerPrivate API. |
6 // This is a private API used by the file browser of ChromeOS. | 6 // This is a private API used by the file browser of ChromeOS. |
7 [platforms=("chromeos"), | 7 [platforms=("chromeos"), |
8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_manager_pr
ivate_api_functions.h"] | 8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_manager_pr
ivate_api_functions.h"] |
9 namespace fileManagerPrivate { | 9 namespace fileManagerPrivate { |
10 // Type of the mounted volume. | 10 // Type of the mounted volume. |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // Path to identify the device. This is consistent with DeviceEvent's | 272 // Path to identify the device. This is consistent with DeviceEvent's |
273 // devicePath. | 273 // devicePath. |
274 DOMString? devicePath; | 274 DOMString? devicePath; |
275 | 275 |
276 // Whether the device is parent or not (i.e. sdb rather than sdb1). | 276 // Whether the device is parent or not (i.e. sdb rather than sdb1). |
277 boolean? isParentDevice; | 277 boolean? isParentDevice; |
278 | 278 |
279 // Flag that specifies if volume is mounted in read-only mode. | 279 // Flag that specifies if volume is mounted in read-only mode. |
280 boolean isReadOnly; | 280 boolean isReadOnly; |
281 | 281 |
282 // Flag that specifies whether the volume contains media. | |
283 boolean hasMedia; | |
284 | |
285 // Additional data about mount, for example, that the filesystem is not | 282 // Additional data about mount, for example, that the filesystem is not |
286 // supported. | 283 // supported. |
287 MountCondition? mountCondition; | 284 MountCondition? mountCondition; |
288 }; | 285 }; |
289 | 286 |
290 // Payload data for mount event. | 287 // Payload data for mount event. |
291 dictionary MountCompletedEvent { | 288 dictionary MountCompletedEvent { |
292 // Is the event raised for mounting or unmounting. | 289 // Is the event raised for mounting or unmounting. |
293 MountCompletedEventType eventType; | 290 MountCompletedEventType eventType; |
294 | 291 |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 | 803 |
807 static void onPreferencesChanged(); | 804 static void onPreferencesChanged(); |
808 | 805 |
809 static void onDriveConnectionStatusChanged(); | 806 static void onDriveConnectionStatusChanged(); |
810 | 807 |
811 static void onDeviceChanged(DeviceEvent event); | 808 static void onDeviceChanged(DeviceEvent event); |
812 | 809 |
813 static void onDriveSyncError(DriveSyncErrorEvent event); | 810 static void onDriveSyncError(DriveSyncErrorEvent event); |
814 }; | 811 }; |
815 }; | 812 }; |
OLD | NEW |