Add python coverage module to third_party
[chromium-blink-merge.git] / chrome / common / extensions / api / media_galleries_private.idl
blob8658d25dd6b3256f705d09db9dbda8a2b4d7bd03
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
3 // found in the LICENSE file.
5 // This is a private API since M23. Gallery watching needs to be implemented
6 // on platforms others than Windows and then moved to the public API.
7 // See http://crbug.com/166950.
8 namespace mediaGalleriesPrivate {
9 // A dictionary that describes the modified gallery.
10 [inline_doc] dictionary GalleryChangeDetails {
11 // Gallery identifier.
12 DOMString galleryId;
15 interface Events {
16 // Fired when a media gallery is changed.
17 static void onGalleryChanged(GalleryChangeDetails details);
20 // A dictionary that describes the add gallery watch request results.
21 dictionary AddGalleryWatchResult {
22 DOMString galleryId;
23 boolean success;
26 callback AddGalleryWatchCallback = void (AddGalleryWatchResult result);
27 callback GetAllGalleryWatchCallback = void (DOMString[] galleryIds);
29 interface Functions {
30 static void addGalleryWatch(DOMString galleryId,
31 AddGalleryWatchCallback callback);
32 static void removeGalleryWatch(DOMString galleryId);
33 static void getAllGalleryWatch(GetAllGalleryWatchCallback callback);
34 static void removeAllGalleryWatch();