Index: chrome/common/extensions/api/media_galleries_private.idl |
diff --git a/chrome/common/extensions/api/media_galleries_private.idl b/chrome/common/extensions/api/media_galleries_private.idl |
index 5b8b2f4ce11a0e1b3c3e0ac079f743c2244a2b98..26cebff47ff44e06acdc542b34102b560b44088b 100644 |
--- a/chrome/common/extensions/api/media_galleries_private.idl |
+++ b/chrome/common/extensions/api/media_galleries_private.idl |
@@ -21,11 +21,35 @@ namespace mediaGalleriesPrivate { |
DOMString deviceId; |
}; |
+ // A dictionary that describes the modified gallery. |
+ [inline_doc] dictionary ModifiedGalleryDetails { |
+ // Gallery identifier. |
+ DOMString galleryId; |
+ }; |
+ |
interface Events { |
// Fired when a media device gets attached. |
static void onDeviceAttached(DeviceAttachmentDetails details); |
// Fired when a media device gets detached. |
static void onDeviceDetached(DeviceDetachmentDetails details); |
+ |
+ // Fired when a media gallery is changed. |
+ static void onGalleryChanged(ModifiedGalleryDetails details); |
Lei Zhang
2012/12/15 01:11:54
GalleryChangeDetails to be consistent with DeviceA
kmadhusu
2012/12/17 23:58:05
Done.
|
+ }; |
+ |
+ // A dictionary that describes the add gallery watch request results. |
+ dictionary AddGalleryWatchResult { |
+ DOMString galleryId; |
+ boolean success; |
+ }; |
+ |
+ callback AddGalleryWatchCallback = |
+ void (AddGalleryWatchResult result); |
Lei Zhang
2012/12/15 02:00:29
nit: fits on the previous line.
kmadhusu
2012/12/17 23:58:05
Done.
|
+ |
+ interface Functions { |
+ static void addGalleryWatch(DOMString galleryId, |
+ AddGalleryWatchCallback callback); |
+ static void removeGalleryWatch(DOMString galleryId); |
}; |
}; |