Bug 1855360 - Fix the skip-if syntax. a=bustage-fix
[gecko.git] / widget / nsIApplicationChooser.idl
blobf3da903a10873be494b17e5e9664fb33204319f0
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
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 "nsISupports.idl"
8 #include "nsIMIMEInfo.idl"
10 interface mozIDOMWindowProxy;
12 [scriptable, function, uuid(8144404d-e6c7-4861-bcca-47de912ee811)]
13 interface nsIApplicationChooserFinishedCallback : nsISupports
15 void done(in nsIHandlerApp handlerApp);
18 [scriptable, uuid(f7a149da-612a-46ba-8a2f-54786fc28791)]
19 interface nsIApplicationChooser : nsISupports
21 /**
22 * Initialize the application chooser picker widget. The application chooser
23 * is not valid until this method is called.
25 * @param parent nsIDOMWindow parent. This dialog will be dependent
26 * on this parent. parent must be non-null.
27 * @param title The title for the file widget
30 void init(in mozIDOMWindowProxy parent, in ACString title);
32 /**
33 * Open application chooser dialog.
35 * @param contentType content type of file to open
36 * @param applicationChooserFinishedCallback callback fuction to run when dialog is closed
38 void open(in ACString contentType, in nsIApplicationChooserFinishedCallback applicationChooserFinishedCallback);