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;
|
2013-03-01 16:21:01 -08:00
|
|
|
interface nsIDOMDOMCursor;
|
2012-08-01 23:29:34 -07:00
|
|
|
interface nsIDOMDeviceStorageChangeEvent;
|
|
|
|
interface nsIDOMEventListener;
|
2012-09-28 22:30:52 -07:00
|
|
|
interface nsIFile;
|
2012-05-21 09:18:30 -07:00
|
|
|
|
2012-06-10 22:50:44 -07:00
|
|
|
dictionary DeviceStorageEnumerationParameters
|
|
|
|
{
|
|
|
|
jsval since;
|
|
|
|
};
|
|
|
|
|
2013-05-11 06:47:37 -07:00
|
|
|
[scriptable, uuid(b6274c63-daa2-4c7a-aa45-b72e45b5f2d2), builtinclass]
|
2012-08-01 23:29:34 -07:00
|
|
|
interface nsIDOMDeviceStorage : nsIDOMEventTarget
|
2012-05-21 09:18:30 -07:00
|
|
|
{
|
2012-08-30 20:45:16 -07:00
|
|
|
[implicit_jscontext] attribute jsval 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]
|
2013-03-01 16:21:01 -08:00
|
|
|
nsIDOMDOMCursor 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]
|
2013-03-01 16:21:01 -08:00
|
|
|
nsIDOMDOMCursor enumerateEditable([optional] in jsval aName, /* DeviceStorageEnumerationParameters */ [optional] in jsval options);
|
2012-07-31 12:28:23 -07:00
|
|
|
|
2013-01-25 11:05:24 -08:00
|
|
|
nsIDOMDOMRequest freeSpace();
|
|
|
|
|
|
|
|
nsIDOMDOMRequest usedSpace();
|
|
|
|
|
|
|
|
nsIDOMDOMRequest available();
|
2012-09-28 22:30:52 -07:00
|
|
|
|
2013-05-11 06:47:37 -07:00
|
|
|
// Note that the volumeName is just a name (like sdcard), and doesn't
|
2013-04-02 12:52:21 -07:00
|
|
|
// include any path information.
|
2013-05-11 06:47:37 -07:00
|
|
|
readonly attribute DOMString volumeName;
|
2013-04-02 12:52:21 -07:00
|
|
|
|
2012-09-28 22:30:52 -07:00
|
|
|
[noscript] readonly attribute nsIFile rootDirectory;
|
2012-05-21 09:18:30 -07:00
|
|
|
};
|