Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / dom / webidl / FileSystemSyncAccessHandle.webidl
blob343f0798bf01885b99824724f4b048efef83272d
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 dictionary FileSystemReadWriteOptions {
7   [EnforceRange] unsigned long long at;
8 };
10 [Exposed=(DedicatedWorker), SecureContext, Pref="dom.fs.enabled"]
11 interface FileSystemSyncAccessHandle {
12   // TODO: Use `[AllowShared] BufferSource data` once it works (bug 1696216)
13   [Throws] unsigned long long read(([AllowShared] ArrayBufferView or [AllowShared] ArrayBuffer) buffer, optional FileSystemReadWriteOptions options = {});
14   [Throws] unsigned long long write(([AllowShared] ArrayBufferView or [AllowShared] ArrayBuffer) buffer, optional FileSystemReadWriteOptions options = {});
16   [Throws] undefined truncate([EnforceRange] unsigned long long size);
17   [Throws] unsigned long long getSize();
18   [Throws] undefined flush();
19   undefined close();