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

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

Issue 1695563002: Media Galleries Partial Deprecation: Remove scan functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « chrome/common/extensions/api/idltest.idl ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/media_galleries.idl
diff --git a/chrome/common/extensions/api/media_galleries.idl b/chrome/common/extensions/api/media_galleries.idl
index 959267367a2649b174c7b708dce771fbfff96a79..8c257c4e96f4b95116278ccf04eaf97dfd2a6cc6 100644
--- a/chrome/common/extensions/api/media_galleries.idl
+++ b/chrome/common/extensions/api/media_galleries.idl
@@ -33,7 +33,7 @@ namespace mediaGalleries {
mimeTypeOnly
};
- [inline_doc] enum ScanProgressType {
+ [nodefine, inline_doc] enum ScanProgressType {
// The scan started.
start,
// The scan was cancelled.
@@ -44,11 +44,11 @@ namespace mediaGalleries {
// The scan encountered an error and could not proceed.
error
};
-
+
[inline_doc] dictionary GalleryChangeDetails {
// Type of change event.
GalleryChangeType type;
-
+
// Identifies the modified gallery.
DOMString galleryId;
};
@@ -99,7 +99,7 @@ namespace mediaGalleries {
boolean isAvailable;
};
- [inline_doc] dictionary ScanProgressDetails {
+ [nodefine, inline_doc] dictionary ScanProgressDetails {
// The type of progress event, i.e. start, finish, etc.
ScanProgressType type;
@@ -119,7 +119,7 @@ namespace mediaGalleries {
dictionary StreamInfo {
// Describes format of container or codec of stream, i.e. "mp3", "h264".
DOMString type;
-
+
// An unfiltered string->string dictionary of tags for the stream.
object tags;
};
@@ -138,7 +138,7 @@ namespace mediaGalleries {
// Defined for audio and video. In seconds.
double? duration;
-
+
// Defined for images and video. In degrees.
long? rotation;
@@ -204,16 +204,19 @@ namespace mediaGalleries {
// The scan may take a long time so progress and completion is communicated
// by events. No permission is granted as a result of the scan, see
// addScanResults.
+ [nodefine, deprecated="The mediaGalleries API no longer supports scanning."]
static void startMediaScan();
// Cancel any pending media scan. Well behaved apps should provide a way
// for the user to cancel scans they start.
+ [nodefine, deprecated="The mediaGalleries API no longer supports scanning."]
static void cancelMediaScan();
// Show the user the scan results and let them add any or all of them as
// galleries. This should be used after the 'finish' onScanProgress()
// event has happened. All galleries the app has access to are returned, not
// just the newly added galleries.
+ [nodefine, deprecated="The mediaGalleries API no longer supports scanning."]
static void addScanResults(MediaFileSystemsCallback callback);
// Get metadata about a specific media file system.
@@ -251,6 +254,7 @@ namespace mediaGalleries {
// The pending media scan has changed state. See details for more
// information.
+ [nodefine, deprecated="The mediaGalleries API no longer supports scanning."]
static void onScanProgress(ScanProgressDetails details);
};
};
« no previous file with comments | « chrome/common/extensions/api/idltest.idl ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698