Service/Sync/FxSync/Developer/BrowserObjects: Difference between revisions

add bookmark and form structures
(Initial document description/structure)
 
(add bookmark and form structures)
Line 9: Line 9:
One bookmark record exists for each "bookmark item," where an item may actually be a folder or a separator. Each item will have a <tt>type</tt> that determines what other fields are available in the object. The following sections describe the object format for a given <tt>type</tt>.
One bookmark record exists for each "bookmark item," where an item may actually be a folder or a separator. Each item will have a <tt>type</tt> that determines what other fields are available in the object. The following sections describe the object format for a given <tt>type</tt>.


=== item ===
==== bookmark ====


=== bookmark ===
This describes a regular bookmark that users can click to view a page.


=== microsummary ===
<b>title</b> <i>string</i>: name of the bookmark
<b>bmkUri</b> <i>string</i> uri of the page to load
<b>description</b> <i>string</i>: extra description if provided
<b>loadInSidebar</b> <i>boolean</i>: true if the bookmark should load in the sidebar
<b>tags</b> <i>array of strings</i>: tags for the bookmark
<b>keyword</b> <i>string</i>: alias to activate the bookmark from the location bar
<b>parentName</b> <i>string</i>: name of the containing folder
<b>predecessorid</b> <i>string</i>: GUID of the item before this (empty if it's first)
<b>type</b> <i>string</i>: "bookmark"


=== query ===
==== microsummary ====


=== folder ===
[https://developer.mozilla.org/en/Microsummary_topics Microsummaries] allow pages to be summarized for viewing from the toolbar. This extends <tt>bookmark</tt>, so the usual <tt>bookmark</tt> fields apply.


=== livemark ===
<b>generatorUri</b> <i>string</i>: uri that generates the summary
<b>staticTitle</b> <i>string</i>: title to show when no summaries are available
<b>title</b> <i>string</i>: name of the microsummary
<b>bmkUri</b> <i>string</i> uri of the page to load
<b>description</b> <i>string</i>: extra description if provided
<b>loadInSidebar</b> <i>boolean</i>: true if the bookmark should load in the sidebar
<b>tags</b> <i>array of strings</i>: tags for the bookmark
<b>keyword</b> <i>string</i>: alias to activate the bookmark from the location bar
<b>parentName</b> <i>string</i>: name of the containing folder
<b>predecessorid</b> <i>string</i>: GUID of the item before this (empty if it's first)
<b>type</b> <i>string</i>: "microsummary"


=== separator ===
==== query ====
 
Place queries are special bookmarks with a place: uri that links to an existing folder/tag. This extends <tt>bookmark</tt>, so the usual <tt>bookmark</tt> fields apply.
 
<b>folderName</b> <i>string</i>: name of the folder/tag to link to
<b>title</b> <i>string</i>: name of the query
<b>bmkUri</b> <i>string</i> place: uri query
<b>description</b> <i>string</i>: extra description if provided
<b>loadInSidebar</b> <i>boolean</i>: true if the bookmark should load in the sidebar
<b>tags</b> <i>array of strings</i>: tags for the query
<b>keyword</b> <i>string</i>: alias to activate the bookmark from the location bar
<b>parentName</b> <i>string</i>: name of the containing folder
<b>predecessorid</b> <i>string</i>: GUID of the item before this (empty if it's first)
<b>type</b> <i>string</i>: "query"
 
==== folder ====
 
Folders contain bookmark items like bookmarks and other folders.
 
<b>title</b> <i>string</i>: name of the folder
<b>parentName</b> <i>string</i>: name of the containing folder
<b>predecessorid</b> <i>string</i>: GUID of the item before this (empty if it's first)
<b>type</b> <i>string</i>: "folder"
 
==== livemark ====
 
[https://developer.mozilla.org/en/Using_the_Places_livemark_service Livemarks] act like folders with a dynamic list bookmarks, e.g., a RSS feed. This extends <tt>folder</tt>, so the usual <tt>folder</tt> fields apply.
 
<b>siteUri</b> <i>string</i>: site associated with the livemark
<b>feedUri</b> <i>string</i>: feed to get items for the livemark
<b>title</b> <i>string</i>: name of the livemark
<b>parentName</b> <i>string</i>: name of the containing folder
<b>predecessorid</b> <i>string</i>: GUID of the item before this (empty if it's first)
<b>type</b> <i>string</i>: "livemark"
 
==== separator ====
 
Separators help split sections of a folder.
 
<b>pos</b> <i>string</i>: position (index) of the separator
<b>parentName</b> <i>string</i>: name of the containing folder
<b>predecessorid</b> <i>string</i>: GUID of the item before this (empty if it's first)
<b>type</b> <i>string</i>: "separator"


== forms ==
== forms ==
Form data is used to give suggestions for autocomplete for a HTML text input form. One record is created for each form entry.
<b>name</b> <i>string</i>: name of the HTML input field
<b>value</b> <i>string</i>: value to suggest for the input


== history ==
== history ==
383

edits