| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle'); |
| goog.provide('blink.mojom.NativeFileSystemFileHandleImpl'); |
| goog.provide('blink.mojom.NativeFileSystemFileHandlePtr'); |
| |
| |
| |
| /** |
| * @const |
| * @type { !mojo.Interface }; |
| */ |
| blink.mojom.NativeFileSystemFileHandle; |
| |
| /** @interface */ |
| blink.mojom.NativeFileSystemFileHandleImpl = class { |
| /** |
| * @param { !boolean } writable |
| * @return {Promise} |
| */ |
| getPermissionStatus(writable) {} |
| /** |
| * @param { !boolean } writable |
| * @return {Promise} |
| */ |
| requestPermission(writable) {} |
| /** |
| * @return {Promise} |
| */ |
| asBlob() {} |
| /** |
| * @return {Promise} |
| */ |
| remove() {} |
| /** |
| * @return {Promise} |
| */ |
| createFileWriter() {} |
| /** |
| * @param { !mojo.InterfaceRequest } token |
| */ |
| transfer(token) {} |
| }; |
| |
| /** |
| * @implements { mojo.InterfacePtr } |
| * @implements { blink.mojom.NativeFileSystemFileHandleImpl } |
| */ |
| blink.mojom.NativeFileSystemFileHandlePtr = class { |
| /** |
| * @param { !boolean } writable |
| * @return {Promise} |
| */ |
| getPermissionStatus(writable) {} |
| /** |
| * @param { !boolean } writable |
| * @return {Promise} |
| */ |
| requestPermission(writable) {} |
| /** |
| * @return {Promise} |
| */ |
| asBlob() {} |
| /** |
| * @return {Promise} |
| */ |
| remove() {} |
| /** |
| * @return {Promise} |
| */ |
| createFileWriter() {} |
| /** |
| * @param { !mojo.InterfaceRequest } token |
| */ |
| transfer(token) {} |
| }; |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle_GetPermissionStatus_Params'); |
| |
| blink.mojom.NativeFileSystemFileHandle_GetPermissionStatus_Params = class { |
| constructor() { |
| /** @type { !boolean } */ |
| this.writable; |
| } |
| }; |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle_GetPermissionStatus_ResponseParams'); |
| |
| blink.mojom.NativeFileSystemFileHandle_GetPermissionStatus_ResponseParams = class { |
| constructor() { |
| /** @type { !blink.mojom.PermissionStatus } */ |
| this.status; |
| } |
| }; |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle_RequestPermission_Params'); |
| |
| blink.mojom.NativeFileSystemFileHandle_RequestPermission_Params = class { |
| constructor() { |
| /** @type { !boolean } */ |
| this.writable; |
| } |
| }; |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle_RequestPermission_ResponseParams'); |
| |
| blink.mojom.NativeFileSystemFileHandle_RequestPermission_ResponseParams = class { |
| constructor() { |
| /** @type { !blink.mojom.PermissionStatus } */ |
| this.status; |
| } |
| }; |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle_AsBlob_Params'); |
| |
| blink.mojom.NativeFileSystemFileHandle_AsBlob_Params = class { |
| constructor() { |
| } |
| }; |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle_AsBlob_ResponseParams'); |
| |
| blink.mojom.NativeFileSystemFileHandle_AsBlob_ResponseParams = class { |
| constructor() { |
| /** @type { !blink.mojom.NativeFileSystemError } */ |
| this.result; |
| /** @type { blink.mojom.SerializedBlob } */ |
| this.blob; |
| } |
| }; |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle_Remove_Params'); |
| |
| blink.mojom.NativeFileSystemFileHandle_Remove_Params = class { |
| constructor() { |
| } |
| }; |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle_Remove_ResponseParams'); |
| |
| blink.mojom.NativeFileSystemFileHandle_Remove_ResponseParams = class { |
| constructor() { |
| /** @type { !blink.mojom.NativeFileSystemError } */ |
| this.result; |
| } |
| }; |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle_CreateFileWriter_Params'); |
| |
| blink.mojom.NativeFileSystemFileHandle_CreateFileWriter_Params = class { |
| constructor() { |
| } |
| }; |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle_CreateFileWriter_ResponseParams'); |
| |
| blink.mojom.NativeFileSystemFileHandle_CreateFileWriter_ResponseParams = class { |
| constructor() { |
| /** @type { !blink.mojom.NativeFileSystemError } */ |
| this.result; |
| /** @type { blink.mojom.NativeFileSystemFileWriterPtr } */ |
| this.writer; |
| } |
| }; |
| |
| goog.provide('blink.mojom.NativeFileSystemFileHandle_Transfer_Params'); |
| |
| blink.mojom.NativeFileSystemFileHandle_Transfer_Params = class { |
| constructor() { |
| /** @type { !mojo.InterfaceRequest } */ |
| this.token; |
| } |
| }; |