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..3d7593113c4ff48d3230b0c0667878cbb057175b 100644 |
--- a/chrome/common/extensions/api/media_galleries_private.idl |
+++ b/chrome/common/extensions/api/media_galleries_private.idl |
@@ -21,11 +21,34 @@ namespace mediaGalleriesPrivate { |
DOMString deviceId; |
}; |
+ // A dictionary that describes the modified gallery. |
+ [inline_doc] dictionary GalleryChangeDetails { |
+ // Gallery identifier. |
+ DOMString galleryId; |
Lei Zhang
2012/12/18 00:47:01
Can't you make galleryId a long in the IDL file he
kmadhusu
2012/12/18 21:32:39
Done.
|
+ }; |
+ |
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(GalleryChangeDetails details); |
+ }; |
+ |
+ // A dictionary that describes the add gallery watch request results. |
+ dictionary AddGalleryWatchResult { |
+ DOMString galleryId; |
+ boolean success; |
+ }; |
+ |
+ callback AddGalleryWatchCallback = void (AddGalleryWatchResult result); |
+ |
+ interface Functions { |
+ static void addGalleryWatch(DOMString galleryId, |
+ AddGalleryWatchCallback callback); |
+ static void removeGalleryWatch(DOMString galleryId); |
}; |
}; |