1 /* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
2 /* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 include protocol PBrowser;
11 include "mozilla/dom/FilePickerMessageUtils.h";
13 using struct mozilla::void_t from "mozilla/ipc/IPCCore.h";
14 using nsIFilePicker::CaptureTarget from "nsIFilePicker.h";
15 using nsIFilePicker::ResultCode from "nsIFilePicker.h";
20 struct InputBlobs { IPCBlob[] blobs; };
21 struct InputDirectory { nsString directoryPath; };
35 async Open(int16_t selectedType, bool addToRecentDocs, nsString defaultFile,
36 nsString defaultExtension, nsString[] filters, nsString[] filterNames,
37 nsString[] rawFilters, nsString displayDirectory,
38 nsString displaySpecialDirectory, nsString okButtonLabel,
39 CaptureTarget capture);
44 async __delete__(MaybeInputData data, ResultCode result);
48 } // namespace mozilla