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