Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2244)

Unified Diff: chrome/common/extensions/api/media_galleries_private.idl

Issue 11535008: Implement mediaGalleriesPrivate api to notify extensions about gallery changed events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable SetupGalleryWatch browser test on ChromeOS Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..b3c7f4970a74a09548db7ae05d3ab0c28fb46340 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.
+ long 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(GalleryChangeDetails details);
+ };
+
+ // A dictionary that describes the add gallery watch request results.
+ dictionary AddGalleryWatchResult {
+ long galleryId;
+ boolean success;
+ };
+
+ callback AddGalleryWatchCallback = void (AddGalleryWatchResult result);
+
+ interface Functions {
+ static void addGalleryWatch(long galleryId,
+ AddGalleryWatchCallback callback);
+ static void removeGalleryWatch(long galleryId);
};
};
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/data/extensions/api_test/media_galleries_private/gallerywatch/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698