Changes

Jump to: navigation, search

WebAPI/DataStore

487 bytes added, 10:40, 11 September 2013
Interface
// Returns the label of the DataSource.
readonly attribute DOMString name;
// Returns the origin of the DataSource (e.g., 'facebook.com').
// This value is the manifest URL of the owner app.
// is readOnly a F(current_app, datastore) function? yes
readonly attribute boolean readOnly;
// Promise<any> Promise get(unsigned long id); // Promise<Objectany> Promise get(int sequence<unsigned long> id); // Promise<void> Promise update(int unsigned long id, Object any obj); // Promise<intunsigned long> Promise add(Object any obj); // Promise<boolean> Promise remove(int unsigned long id); // Promise<void> Promise clear();
readonly attribute DOMString revisionId;
attribute EventHandler onchange;
// Promise<DataStoreChanges> Promise getChanges(DOMString revisionId); // TODO: getAll(), Promise<unsigned long> Promise getLength().; }; dictionary DataStoreChanges { DOMString revisionId; sequence<unsigned long> addedIds; sequence<unsigned long> updatedIds; sequence<unsigned long> removedIds; }; dictionary DataStoreChangeEventInit : EventInit { DOMString revisionId = ""; unsigned long id = 0; DOMString operation = "";
};
[Constructor(DOMString type, optional DataStoreChangeEventInit eventInitDict)] interface DataStoreChanges DataStoreChangeEvent : Event {
readonly attribute DOMString revisionId;
readonly attribute int[] addedIdsunsigned long id; readonly attribute int[] updatedIds; readonly attribute int[] removedIds; } partial interface Navigator { Promise<sequence<DataStore>> getDataStores(DOMString name)operation;
};
Confirm
53
edits

Navigation menu