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

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

Issue 13063004: Method to get Media Galleries handlers in MediaGalleriesPrivateApi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 7 years, 9 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
« no previous file with comments | « chrome/browser/extensions/extension_function_histogram_value.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9767e86e0cd6bec4cc862fc77471a268f2772966..80acb0f285f75066a7b7b820b7fac70fe0b5dd2a 100644
--- a/chrome/common/extensions/api/media_galleries_private.idl
+++ b/chrome/common/extensions/api/media_galleries_private.idl
@@ -6,7 +6,7 @@
// systeminfo.storage API in M24.
namespace mediaGalleriesPrivate {
- // A dictionary that describes an attached device.
+ // A dictionary that describes an attached device.
[inline_doc] dictionary DeviceAttachmentDetails {
// The name of the device.
DOMString deviceName;
@@ -63,6 +63,23 @@ namespace mediaGalleriesPrivate {
callback EjectDeviceCallback = void (EjectDeviceResultCode result);
+ // A dictionary that describes a media galleries handler.
+ [inline_doc] dictionary MediaGalleriesHandler {
+ // Unique action id per extension.
+ DOMString id;
+
+ // ID of the extension handling this handler.
+ DOMString extensionId;
+
+ // Localized title describing the action.
+ DOMString title;
+
+ // Url of the icon.
+ DOMString iconUrl;
+ };
+
+ callback GetHandlersCallback = void (MediaGalleriesHandler[] handlers);
+
interface Functions {
static void addGalleryWatch(DOMString galleryId,
AddGalleryWatchCallback callback);
@@ -70,5 +87,6 @@ namespace mediaGalleriesPrivate {
static void getAllGalleryWatch(GetAllGalleryWatchCallback callback);
static void removeAllGalleryWatch();
static void ejectDevice(DOMString deviceId, EjectDeviceCallback callback);
+ static void getHandlers(GetHandlersCallback callback);
};
};
« no previous file with comments | « chrome/browser/extensions/extension_function_histogram_value.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698