dom/ipc/PFilePicker.ipdl
author B2G Bumper Bot <release+b2gbumper@mozilla.com>
Fri, 27 Jun 2014 17:00:29 -0700
changeset 208544 135686e1d4f41d1df1b172238bc8a4f9d534d5d9
parent 188475 edf18d2929c328c10b62b8779d63431b84aca6c3
child 241213 1a2c37d55e5e7356bb91789ba8fe7af104fed7ee
permissions -rw-r--r--
Bumping manifests a=b2g-bump

/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
/* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
/* 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 protocol PBlob;
include protocol PBrowser;

using struct mozilla::void_t from "ipc/IPCMessageUtils.h";

namespace mozilla {
namespace dom {

struct InputFiles
{
  PBlob[] files;
};

union MaybeInputFiles
{
  InputFiles;
  void_t;
};

protocol PFilePicker
{
  manager PBrowser;

parent:
    Open(int16_t selectedType, bool addToRecentDocs, nsString defaultFile,
         nsString defaultExtension, nsString[] filters, nsString[] filterNames);

child:
    __delete__(MaybeInputFiles files, int16_t result);
};

} // namespace dom
} // namespace mozilla