Confirmed users
53
edits
Line 67: | Line 67: | ||
// Returns the label of the DataSource. | // Returns the label of the DataSource. | ||
readonly attribute DOMString name; | readonly attribute DOMString name; | ||
// Returns the origin of the DataSource (e.g., 'facebook.com'). | // Returns the origin of the DataSource (e.g., 'facebook.com'). | ||
// | // This value is the manifest URL of the owner app. | ||
readonly attribute DOMString owner; | readonly attribute DOMString owner; | ||
// is readOnly a F(current_app, datastore) function? yes | // is readOnly a F(current_app, datastore) function? yes | ||
readonly attribute boolean readOnly; | readonly attribute boolean readOnly; | ||
Promise<Object> get(int id); | |||
Promise<void> update(int id, Object obj); | |||
Promise<int> add(Object obj); | |||
Promise<boolean> remove(int id); | |||
Promise<void> clear(); | |||
readonly attribute DOMString revisionId; | readonly attribute DOMString revisionId; | ||
attribute EventHandler onchange; | attribute EventHandler onchange; | ||
Future<DataStoreChanges> getChanges(DOMString revisionId); | Future<DataStoreChanges> getChanges(DOMString revisionId); | ||
// TODO: getAll(), getLength(). | // TODO: getAll(), getLength(). | ||
}; | }; | ||
Line 90: | Line 95: | ||
readonly attribute int[] removedIds; | readonly attribute int[] removedIds; | ||
} | } | ||
partial interface Navigator { | partial interface Navigator { | ||
Promise<sequence<DataStore>> getDataStores(DOMString name); | |||
}; | }; | ||