dom/ipc/PFilePicker.ipdl
author Mike Hommey <mh+mozilla@glandium.org>
Wed, 10 Jun 2015 09:58:50 +0900
changeset 247858 5c0acaf8f47857f634ffdf3151f5418f18cbb97d
parent 243536 01945d117c5c57719f1dce8af889dcbd0b825b47
child 282269 b04361fcbafcb20cfab95999b6a7b37633dd3bc7
permissions -rw-r--r--
bug 1172632 - Move some allocator related configure checks in a common location for both top-level and js/src to use. r=mshal

/* -*- 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[] blobs;
};

union MaybeInputFiles
{
  InputFiles;
  void_t;
};

protocol PFilePicker
{
  manager PBrowser;

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

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

} // namespace dom
} // namespace mozilla