Firefox3/ContentManagement:Scenarios: Difference between revisions

Line 64: Line 64:


Perhaps it could look something like this:
Perhaps it could look something like this:
   * registerProtocolHandler(protocol, uri, title)
   /**
   ** where "uri" includes a "%s" for substituting the escaped protocol URI
  * @param  protocol  The protocol to register for, e.g., "mailto"
   * registerFeedHandler(feed-type, uri, title)
   * @param  uri       Includes a %s for substituting the escaped protocol URI
   ** where uri includes a %s for substituting the feed URL
   * @param  title    User-facing title of the web app
   ** where feed type specify "text", "audio", "video", "image"??
  */
   * registerFileHandler(mime-type, uri, title)
  registerProtocolHandler(protocol, uri, title)
   ** "uri" doesn't need "%s", instead content will be POST'ed
 
   * registerMicroformatHandler(name,uri,title)
   /**
   ** where "name" is the name of the microformat type
   * @param  feed-type Type of feed ("text", "audio", "video", "image"?... or format?)
  * @param  uri      Includes a %s for substituting the escaped protocol URI
   * @param  title    User-facing title of the web app
  */
  registerFeedHandler(feed-type, uri, title)
 
   /**
  * @param  mime-type The MIME-type of the data, e.g, "application/pdf"
  * @param  uri       The URI to POST the data to
   * @param  title    User-facing title of the web app
  */
  registerFileHandler(mime-type, uri, title)
 
   /**
  * @param  name     The type of microformat
  * @param  uri      The URI to POST the data to
  * @param  title    User-facing title of the web app
  */
  registerMicroformatHandler(name,uri,title)


This differs from the current WHAT WG spec in the following ways:
This differs from the current WHAT WG spec in the following ways:
12

edits