mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
05d0d7f21d
* * * Bug 910498 - Camera changes to use CreateFd. r=mikeh * * * Fixes for windows build
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++
|
|
class DeviceStorageFileDescriptor;
|
|
%}
|
|
[ptr] native DeviceStorageFdPtr(DeviceStorageFileDescriptor);
|
|
|
|
[scriptable, uuid(8b724547-3c78-4244-969a-f00a1f4ae0c3), 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);
|
|
};
|