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

Unified Diff: third_party/chrome/idl/media_galleries_private.idl

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « third_party/chrome/idl/media_galleries.idl ('k') | third_party/chrome/idl/media_player_private.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/idl/media_galleries_private.idl
diff --git a/third_party/chrome/idl/media_galleries_private.idl b/third_party/chrome/idl/media_galleries_private.idl
new file mode 100644
index 0000000000000000000000000000000000000000..b3c7f4970a74a09548db7ae05d3ab0c28fb46340
--- /dev/null
+++ b/third_party/chrome/idl/media_galleries_private.idl
@@ -0,0 +1,54 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This is a private API for M23. This will be superceded by the
+// systeminfo.storage API in M24.
+
+namespace mediaGalleriesPrivate {
+ // A dictionary that describes an attached device.
+ [inline_doc] dictionary DeviceAttachmentDetails {
+ // The name of the device.
+ DOMString deviceName;
+
+ // A transient id that unique identifies the device.
+ DOMString deviceId;
+ };
+
+ // A dictionary that describes a detached device.
+ [inline_doc] dictionary DeviceDetachmentDetails {
+ // A transient id that unique identifies the device.
+ 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 | « third_party/chrome/idl/media_galleries.idl ('k') | third_party/chrome/idl/media_player_private.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698