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

Unified Diff: tools/dom/src/chrome/media_galleries.dart

Issue 12316032: Added more Chrome.* libraries to dart:chrome (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added isMaximised override file 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 | « tools/dom/src/chrome/file_system.dart ('k') | tools/dom/src/chrome/media_galleries_private.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/chrome/media_galleries.dart
diff --git a/tools/dom/src/chrome/media_galleries.dart b/tools/dom/src/chrome/media_galleries.dart
new file mode 100644
index 0000000000000000000000000000000000000000..667460477e3cb2deb9fe93eea90b1f4865b84416
--- /dev/null
+++ b/tools/dom/src/chrome/media_galleries.dart
@@ -0,0 +1,135 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// Generated from namespace: mediaGalleries
+
+part of chrome;
+
+/**
+ * Types
+ */
+
+class MediagalleriesMediaFileSystemsDetails extends ChromeObject {
+ /*
+ * Public constructor
+ */
+ MediagalleriesMediaFileSystemsDetails({String interactive}) {
+ if (?interactive)
+ this.interactive = interactive;
+ }
+
+ /*
+ * Private constructor
+ */
+ MediagalleriesMediaFileSystemsDetails._proxy(_jsObject) : super._proxy(_jsObject);
+
+ /*
+ * Public accessors
+ */
+ /// Whether to prompt the user for permission to additional media galleries
+ /// before returning the permitted set. Default is silent. If the value 'yes'
+ /// is passed, or if the application has not been granted access to any media
+ /// galleries and the value 'if_needed' is passed, then the media gallery
+ /// configuration dialog will be displayed.
+ String get interactive => JS('String', '#.interactive', this._jsObject);
+
+ void set interactive(String interactive) {
+ JS('void', '#.interactive = #', this._jsObject, interactive);
+ }
+
+}
+
+class MediagalleriesMediaFileSystemMetadata extends ChromeObject {
+ /*
+ * Public constructor
+ */
+ MediagalleriesMediaFileSystemMetadata({String name, int galleryId, int deviceId, bool isRemovable, bool isMediaDevice}) {
+ if (?name)
+ this.name = name;
+ if (?galleryId)
+ this.galleryId = galleryId;
+ if (?deviceId)
+ this.deviceId = deviceId;
+ if (?isRemovable)
+ this.isRemovable = isRemovable;
+ if (?isMediaDevice)
+ this.isMediaDevice = isMediaDevice;
+ }
+
+ /*
+ * Private constructor
+ */
+ MediagalleriesMediaFileSystemMetadata._proxy(_jsObject) : super._proxy(_jsObject);
+
+ /*
+ * Public accessors
+ */
+ /// The name of the file system.
+ String get name => JS('String', '#.name', this._jsObject);
+
+ void set name(String name) {
+ JS('void', '#.name = #', this._jsObject, name);
+ }
+
+ /// A unique and persistent id for the media gallery.
+ int get galleryId => JS('int', '#.galleryId', this._jsObject);
+
+ void set galleryId(int galleryId) {
+ JS('void', '#.galleryId = #', this._jsObject, galleryId);
+ }
+
+ /// If the media gallery is on a removable device, a unique id for the device.
+ int get deviceId => JS('int', '#.deviceId', this._jsObject);
+
+ void set deviceId(int deviceId) {
+ JS('void', '#.deviceId = #', this._jsObject, deviceId);
+ }
+
+ /// True if the media gallery is on a removable device.
+ bool get isRemovable => JS('bool', '#.isRemovable', this._jsObject);
+
+ void set isRemovable(bool isRemovable) {
+ JS('void', '#.isRemovable = #', this._jsObject, isRemovable);
+ }
+
+ /// True if the device the media gallery is on was detected as a media device.
+ /// i.e. a PTP or MTP device, or a DCIM directory is present.
+ bool get isMediaDevice => JS('bool', '#.isMediaDevice', this._jsObject);
+
+ void set isMediaDevice(bool isMediaDevice) {
+ JS('void', '#.isMediaDevice = #', this._jsObject, isMediaDevice);
+ }
+
+}
+
+/**
+ * Functions
+ */
+
+class API_media_galleries {
+ /*
+ * API connection
+ */
+ Object _jsObject;
+
+ /*
+ * Functions
+ */
+ /// Get the media galleries configured in this user agent. If none are
+ /// configured or available, the callback will receive an empty array.
+ void getMediaFileSystems(void callback(List<DOMFileSystem> mediaFileSystems), [MediagalleriesMediaFileSystemsDetails details]) {
+ void __proxy_callback(mediaFileSystems) {
+ if (?callback) {
+ callback(mediaFileSystems);
+ }
+ }
+ JS('void', '#.getMediaFileSystems(#, #)', this._jsObject, convertArgument(details), convertDartClosureToJS(__proxy_callback, 1));
+ }
+
+ /// Get metadata about a specific media file system.
+ MediagalleriesMediaFileSystemMetadata getMediaFileSystemMetadata(DOMFileSystem mediaFileSystem) => new MediagalleriesMediaFileSystemMetadata._proxy(JS('', '#.getMediaFileSystemMetadata(#)', this._jsObject, convertArgument(mediaFileSystem)));
+
+ API_media_galleries(this._jsObject) {
+ }
+}
« no previous file with comments | « tools/dom/src/chrome/file_system.dart ('k') | tools/dom/src/chrome/media_galleries_private.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698