| 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 // Use the <code>chrome.mediaGalleries</code> API to access media files (audio, | 6 // Use the <code>chrome.mediaGalleries</code> API to access media files (audio, |
| 6 // images, video) from the user's local disks (with the user's consent). | 7 // images, video) from the user's local disks (with the user's consent). |
| 7 namespace mediaGalleries { | 8 [use_movable_types=true] namespace mediaGalleries { |
| 8 | 9 |
| 9 [inline_doc] enum GalleryChangeType { | 10 [inline_doc] enum GalleryChangeType { |
| 10 // The contents of the gallery have changed. | 11 // The contents of the gallery have changed. |
| 11 contents_changed, | 12 contents_changed, |
| 12 // The watch has been dropped because the device has been detached, | 13 // The watch has been dropped because the device has been detached, |
| 13 // the gallery permission has been removed, or any other reason. | 14 // the gallery permission has been removed, or any other reason. |
| 14 watch_dropped | 15 watch_dropped |
| 15 }; | 16 }; |
| 16 | 17 |
| 17 [inline_doc] enum GetMediaFileSystemsInteractivity { | 18 [inline_doc] enum GetMediaFileSystemsInteractivity { |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 interface Events { | 246 interface Events { |
| 246 // Fired when a media gallery is changed or a gallery watch is dropped. | 247 // Fired when a media gallery is changed or a gallery watch is dropped. |
| 247 static void onGalleryChanged(GalleryChangeDetails details); | 248 static void onGalleryChanged(GalleryChangeDetails details); |
| 248 | 249 |
| 249 // The pending media scan has changed state. See details for more | 250 // The pending media scan has changed state. See details for more |
| 250 // information. | 251 // information. |
| 251 [nodefine, deprecated="The mediaGalleries API no longer supports scanning."] | 252 [nodefine, deprecated="The mediaGalleries API no longer supports scanning."] |
| 252 static void onScanProgress(ScanProgressDetails details); | 253 static void onScanProgress(ScanProgressDetails details); |
| 253 }; | 254 }; |
| 254 }; | 255 }; |
| OLD | NEW |