mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
e1781611b1
--HG-- extra : rebase_source : ec9740e1a9794ae8d974f36a503e97fb2e4fc95e
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
/* 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"
|
|
#include "nsIDOMEventTarget.idl"
|
|
interface nsIDOMBlob;
|
|
interface nsIDOMDOMRequest;
|
|
interface nsIDOMDOMCursor;
|
|
interface nsIDOMDeviceStorageChangeEvent;
|
|
interface nsIDOMEventListener;
|
|
interface nsIFile;
|
|
|
|
%{C++
|
|
struct DeviceStorageFileDescriptor;
|
|
%}
|
|
[ptr] native DeviceStorageFdPtr(DeviceStorageFileDescriptor);
|
|
|
|
[uuid(25e4e387-1974-4f77-83b5-e6f3cf1beae8), builtinclass]
|
|
interface nsIDOMDeviceStorage : nsIDOMEventTarget
|
|
{
|
|
[implicit_jscontext] attribute jsval onchange;
|
|
nsIDOMDOMRequest add(in nsIDOMBlob aBlob);
|
|
nsIDOMDOMRequest addNamed(in nsIDOMBlob aBlob, in DOMString aName);
|
|
|
|
nsIDOMDOMRequest get([Null(Stringify)] in DOMString aName);
|
|
nsIDOMDOMRequest getEditable([Null(Stringify)] in DOMString aName);
|
|
nsIDOMDOMRequest delete([Null(Stringify)] in DOMString aName);
|
|
|
|
nsIDOMDOMRequest freeSpace();
|
|
nsIDOMDOMRequest usedSpace();
|
|
nsIDOMDOMRequest available();
|
|
|
|
// Note that the storageName is just a name (like sdcard), and doesn't
|
|
// include any path information.
|
|
readonly attribute DOMString storageName;
|
|
|
|
// Determines if this storage area is the one which will be used by default
|
|
// for storing new files.
|
|
readonly attribute bool default;
|
|
|
|
// Note: aFileDescriptor is reference counted, which is why we're using
|
|
// a pointer rather than a reference.
|
|
[noscript] nsIDOMDOMRequest createFileDescriptor(in DOMString aName,
|
|
in DeviceStorageFdPtr aFileDescriptor);
|
|
};
|