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

Side by Side 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: '' Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This is a private API for M23. This will be superceded by the 5 // This is a private API for M23. This will be superceded by the
6 // systeminfo.storage API in M24. 6 // systeminfo.storage API in M24.
7 7
8 namespace mediaGalleriesPrivate { 8 namespace mediaGalleriesPrivate {
9 // A dictionary that describes an attached device. 9 // A dictionary that describes an attached device.
10 [inline_doc] dictionary DeviceAttachmentDetails { 10 [inline_doc] dictionary DeviceAttachmentDetails {
11 // The name of the device. 11 // The name of the device.
12 DOMString deviceName; 12 DOMString deviceName;
13 13
14 // A transient id that unique identifies the device. 14 // A transient id that unique identifies the device.
15 DOMString deviceId; 15 DOMString deviceId;
16 }; 16 };
17 17
18 // A dictionary that describes a detached device. 18 // A dictionary that describes a detached device.
19 [inline_doc] dictionary DeviceDetachmentDetails { 19 [inline_doc] dictionary DeviceDetachmentDetails {
20 // A transient id that unique identifies the device. 20 // A transient id that unique identifies the device.
21 DOMString deviceId; 21 DOMString deviceId;
22 }; 22 };
23 23
24 // A dictionary that describes the modified gallery.
25 [inline_doc] dictionary ModifiedGalleryDetails {
26 // Gallery identifier.
27 DOMString galleryId;
28 };
29
24 interface Events { 30 interface Events {
25 // Fired when a media device gets attached. 31 // Fired when a media device gets attached.
26 static void onDeviceAttached(DeviceAttachmentDetails details); 32 static void onDeviceAttached(DeviceAttachmentDetails details);
27 33
28 // Fired when a media device gets detached. 34 // Fired when a media device gets detached.
29 static void onDeviceDetached(DeviceDetachmentDetails details); 35 static void onDeviceDetached(DeviceDetachmentDetails details);
36
37 // Fired when a media gallery is changed.
38 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.
39 };
40
41 // A dictionary that describes the add gallery watch request results.
42 dictionary AddGalleryWatchResult {
43 DOMString galleryId;
44 boolean success;
45 };
46
47 callback AddGalleryWatchCallback =
48 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.
49
50 interface Functions {
51 static void addGalleryWatch(DOMString galleryId,
52 AddGalleryWatchCallback callback);
53 static void removeGalleryWatch(DOMString galleryId);
30 }; 54 };
31 }; 55 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698