2012-05-21 09:18:30 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "domstubs.idl"
|
2012-08-01 23:29:34 -07:00
|
|
|
#include "nsIDOMEventTarget.idl"
|
2012-05-21 09:18:30 -07:00
|
|
|
interface nsIDOMBlob;
|
|
|
|
interface nsIDOMDOMRequest;
|
|
|
|
interface nsIDOMDeviceStorageCursor;
|
2012-08-01 23:29:34 -07:00
|
|
|
interface nsIDOMDeviceStorageChangeEvent;
|
|
|
|
interface nsIDOMEventListener;
|
2012-05-21 09:18:30 -07:00
|
|
|
|
2012-06-10 22:50:44 -07:00
|
|
|
dictionary DeviceStorageEnumerationParameters
|
|
|
|
{
|
|
|
|
jsval since;
|
|
|
|
};
|
|
|
|
|
2012-07-31 12:28:23 -07:00
|
|
|
[scriptable, uuid(36f3b16b-a398-4b19-944e-ce299b714725), builtinclass]
|
2012-08-01 23:29:34 -07:00
|
|
|
interface nsIDOMDeviceStorage : nsIDOMEventTarget
|
2012-05-21 09:18:30 -07:00
|
|
|
{
|
2012-08-01 23:29:34 -07:00
|
|
|
attribute nsIDOMEventListener onchange;
|
2012-05-21 09:18:30 -07:00
|
|
|
nsIDOMDOMRequest add(in nsIDOMBlob aBlob);
|
|
|
|
nsIDOMDOMRequest addNamed(in nsIDOMBlob aBlob, in DOMString aName);
|
|
|
|
|
|
|
|
[implicit_jscontext]
|
|
|
|
nsIDOMDOMRequest get(in jsval aName);
|
|
|
|
|
|
|
|
[implicit_jscontext]
|
|
|
|
nsIDOMDOMRequest getEditable(in jsval aName);
|
2012-06-03 09:33:52 -07:00
|
|
|
|
2012-05-21 09:18:30 -07:00
|
|
|
[implicit_jscontext]
|
|
|
|
nsIDOMDOMRequest delete(in jsval aName);
|
|
|
|
|
2012-06-10 22:50:44 -07:00
|
|
|
[optional_argc, implicit_jscontext]
|
|
|
|
nsIDOMDeviceStorageCursor enumerate([optional] in jsval aName, /* DeviceStorageEnumerationParameters */ [optional] in jsval options);
|
2012-05-21 09:18:30 -07:00
|
|
|
|
2012-06-10 22:50:44 -07:00
|
|
|
[optional_argc, implicit_jscontext]
|
|
|
|
nsIDOMDeviceStorageCursor enumerateEditable([optional] in jsval aName, /* DeviceStorageEnumerationParameters */ [optional] in jsval options);
|
2012-07-31 12:28:23 -07:00
|
|
|
|
|
|
|
nsIDOMDOMRequest stat();
|
2012-05-21 09:18:30 -07:00
|
|
|
};
|