W3C home > Mailing lists > Public > public-dap-commits@w3.org > August 2012

dap commit: Modify dictionary syntax

From: Mercurial notifier <cvsmail@w3.org>
Date: Fri, 31 Aug 2012 12:12:06 +0000
Message-Id: <E1T7Q50-0005ua-GZ@mcbain.w3.org>
To: public-dap-commits@w3.org
changeset:   212:9e85394e6ede
tag:         tip
user:        Jungkee Song <jungkee.song@samsung.com>
date:        Fri Aug 31 21:11:22 2012 +0900
files:       gallery/Overview.html
description:
Modify dictionary syntax


diff -r e2ad561c9630 -r 9e85394e6ede gallery/Overview.html
--- a/gallery/Overview.html	Thu Aug 30 16:11:54 2012 +0200
+++ b/gallery/Overview.html	Fri Aug 31 21:11:22 2012 +0900
@@ -99,8 +99,8 @@
         The following code illustrates how to obtain media object from a user's media gallery:
       </p>
       <pre class="example highlight">
-        var intent = new Intent({ action:   "http://webintents.org/pick",
-                                  type:     "http://w3.org/type/media",
+        var intent = new Intent({ action:   "http://intents.w3.org/pick",
+                                  type:     "http://intents.w3.org/type/media",
                                   extras:   { search: "Olympic",
                                               filters: ["title", "description", "author", "tags"],
                                               limit: 100 }});
@@ -216,10 +216,10 @@
     <section>
       <h2>Intent Description</h2>
       <p>
-        The action for this Intent is <code>http://webintents.org/pick</code>.
+        The action for this Intent is <code>http://intents.w3.org/pick</code>.
       </p>
       <p>
-        The type for this Intent is <code>http://w3.org/type/media</code>.
+        The type for this Intent is <code>http://intents.w3.org/type/media</code>.
       </p>
       <p>
         When a <a>media service</a> is matched for delivery using these action and type, it
@@ -248,19 +248,19 @@
             The <a>MediaIntentExtras</a> dictionary describes the options that the invoker can inform to the service as hints in searching the media objects. None of the fields are mandatory.
           </p>
           <dl title='dictionary MediaIntentExtras' class='idl'>
-            <dt>DOMString? search</dt>
+            <dt>DOMString search</dt>
             <dd>
               A string which provides a hint to the <a>media service</a> to search media objects.
               The exact manner in which this hint is exploited is entirely up to the <a>media service</a>.
             </dd>
-            <dt>DOMString[]? filters</dt>
+            <dt>sequence&lt;DOMString&gt; filters</dt>
             <dd>
               An array of string which contain hints to the <a>media service</a> to the DOMString and DOMString[] fields in the <a>Media</a> dictionary that
               the Web application prefers to use as search criteria. The <a>media service</a> MAY
               use the values of the <a>filters</a> to search media objects in the media gallery. If a filter name is provided that the <a>media service</a> does not recognise as a field
               of the <a>Media</a> dictionary, then it MUST ignore it.
             </dd>
-            <dt>unsigned long? limit</dt>
+            <dt>unsigned long limit</dt>
             <dd>
               By default a <a>media service</a> MAY return as many media objects as the user selects. If <code>limit</code>
               is specified, the <a>media service</a> MUST NOT return more than <code>limit</code> media objects. The
@@ -285,9 +285,9 @@
           <a href="#extended-media-properties-and-parameters">Extended Media Properties and Parameters</a>.
         </p>
         <dl title='dictionary Media' class='idl'>
-          <dt>MediaContent content</dt>
+          <dt>Object content</dt>
           <dd>
-            The dictionary contains the URI to the content of the media resource. It optionally contains a Blob of the content.
+            A <a>MediaContent</a> dictionary object containing the URI to the content of the media resource. It optionally contains a Blob of the content.
           </dd>
           <dt>DOMString title</dt>
           <dd>
@@ -301,101 +301,101 @@
           <dd>
             The attribute specifies the MIME type of the media resource (e.g., image/png, video/*) [[RFC2046]].
           </dd>
-          <dt>DOMString? author</dt>
+          <dt>DOMString author</dt>
           <dd>
             The attribute specifies the creator of the media resource.
             <p class="note">
               The name of the attribute represents various contributors, e.g. creator, artist, actoress, etc., in the given media resouce. Hence, the name of the attribute can be changed based on the discussion.
             </p>
           </dd>
-          <dt>DOMString? publisher</dt>
+          <dt>DOMString publisher</dt>
           <dd>
             The attribute specifies the publisher of the media resource. The attribute can represent various contributors including media uploader, album artist, producer, etc.
           </dd>
-          <dt>DOMString? composer</dt>
+          <dt>DOMString composer</dt>
           <dd>
             The attribute specifies the composer of the media resource.
             <p class="note">
               The usage of the attribute in deployed web services is low (see <a href="#metadata-properties">Metadata properties table</a>.) However, the use case exists in audio applications. The retention of the attribue will be discussed in the group.
             </p>
           </dd>
-          <dt>DOMString? collection</dt>
+          <dt>DOMString collection</dt>
           <dd>
             The attribute specifies the name of the collection that the media resource belongs to.
             <p class="note">
               The name of the attribute represents various sets of media resources, e.g. music album, photo album, video collection, etc. Hence, the name of the attribute can be changed based on the discussion.
             </p>
           </dd>
-          <dt>DOMString? genre</dt>
+          <dt>DOMString genre</dt>
           <dd>
             The attribute specifies the genre (category) of the content of the media resource.
           </dd>
-          <dt>DOMString? copyright</dt>
+          <dt>DOMString copyright</dt>
           <dd>
             The attribute specifies the copyright statement associated with the media resource.
           </dd>
-          <dt>DOMString? path</dt>
+          <dt>DOMString path</dt>
           <dd>
             The attribute specifies file path of the media resource in user's local storage. The value of the attribute can be an absolute file path or a name of the leaf file considering the use cases.
             <p class="note">
               Although, the original purpose of the attribute is to denote the file path of user's local storage, any additional URL information can be delivered in this attribute.
             </p>
           </dd>
-          <dt>float? size</dt>
+          <dt>float size</dt>
           <dd>
             The attribute specifies the size of the content of the media resource.
           </dd>
-          <dt>Position? location</dt>
+          <dt>Position location</dt>
           <dd>
             The attribute contains the location information related to the content of the media resource. [[GEOLOCATION-API]]
           </dd>
-          <dt>DOMString[]? tags</dt>
+          <dt>sequence&lt;DOMString&gt; tags</dt>
           <dd>
               The attribute contains the array of strings representing series of tag string.
           </dd>
-          <dt>MediaContent? thumbnail</dt>
+          <dt>Object thumbnail</dt>
           <dd>
-            The dictionary contains the URI to the thumbnail of the content of the media resource. It optionally contains a Blob of the thumbnail of the content.
+            A <a>MediaContent</a> dictionary object containing the URI to the thumbnail of the content of the media resource. It optionally contains a Blob of the thumbnail of the content.
           </dd>
-          <dt>Date? date</dt>
+          <dt>Date date</dt>
           <dd>
               The date Date object represents either the creation date or the last updated date of the media resource.
           </dd>
-          <dt>Date? publishDate</dt>
+          <dt>Date publishDate</dt>
           <dd>
               The publishDate Date object represents the publishing date of the media resource.
           </dd>
-          <dt>unsigned long? duration</dt>
+          <dt>unsigned long duration</dt>
           <dd>
               The attribute specifies the actual duration of the resource in seconds. (e.g., a running time for a film, a length of a song, etc.)
           </dd>
-          <dt>Resolution? resolution</dt>
+          <dt>Object resolution</dt>
           <dd>
-            The dictionary specifies the width and height of the media resource in pixels. (e.g., the resolution of Full HD, 1080p, can be represented as: width = 1920 and height = 1080.)
+            A <a>Resolution</a> dictionary object specifying the width and height of the media resource in pixels. (e.g., the resolution of Full HD, 1080p, can be represented as: width = 1920 and height = 1080.)
           </dd>
-          <dt>unsigned long? trackNumber</dt>
+          <dt>unsigned long trackNumber</dt>
           <dd>
             The attribute specifies the track number of the media resource.
             <p class="note">
               The usage of the attribute is confined to audio type. (see <a href="#metadata-properties">Metadata properties table</a>.) However, the use case exists in audio applications. The retention of the attribue will be discussed in the group.
             </p>
           </dd>
-          <dt>DOMString? subtitle</dt>
+          <dt>DOMString subtitle</dt>
           <dd>
             The attribute contains the subtitle used in the media resource.
             <p class="note">
               The usage of the attribute in deployed web services is low (see <a href="#metadata-properties">Metadata properties table</a>.) However, the use case exists in audio and video applications. The retention of the attribue will be discussed in the group.
             </p>
           </dd>
-          <dt>unsigned long? likeCount</dt>
+          <dt>unsigned long likeCount</dt>
           <dd>
               The attribute specifies the count of the votes in favor of the media resource.
           </dd>
-          <dt>unsigned long? viewCount</dt>
+          <dt>unsigned long viewCount</dt>
           <dd>
               The attribute specifies the access count made on the media resource.
           </dd>
-          <dt>float? rating</dt>
+          <dt>float rating</dt>
           <dd>
               The attribute specifies the rating value (e.g., customer rating, review, audience appreciation) of the media resource.
           </dd>
@@ -412,7 +412,7 @@
           <dd>
             The URI to the content of the media resource. This attribute is a mandatory property.
           </dd>
-          <dt>Blob? blob</dt>
+          <dt>Blob blob</dt>
           <dd>
             The optional property to contain the media content in Blob format.
           </dd>
@@ -1161,4 +1161,4 @@
       </section>
     </section>
   </body>
-</html>
\ No newline at end of file
+</html>
Received on Friday, 31 August 2012 12:12:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 31 August 2012 12:12:16 GMT