Changes

Jump to: navigation, search

WebAPI/DataStore

13 bytes removed, 13:32, 23 August 2013
Interface
// Returns the label of the DataSource.
readonly attribute DOMString name;
// Returns the origin of the DataSource (e.g., 'facebook.com').
// TODO: defines what This value is the value should be if owned by 'system'manifest URL of the owner app.
readonly attribute DOMString owner;
// is readOnly a F(current_app, datastore) function? yes
readonly attribute boolean readOnly;
// TODO: id should be incremental. FuturePromise<Object> get(int id); FuturePromise<void> update(int id, Object obj); FuturePromise<int> add(Object obj); FuturePromise<boolean> remove(int id); FuturePromise<void> clear();
readonly attribute DOMString revisionId;
attribute EventHandler onchange;
Future<DataStoreChanges> getChanges(DOMString revisionId);
// TODO: getAll(), getLength().
};
readonly attribute int[] removedIds;
}
partial interface Navigator {
FuturePromise<sequence<DataStore>> getDataStores(DOMString name);
};
Confirm
53
edits

Navigation menu