Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsISupports.idl" |
michael@0 | 6 | |
michael@0 | 7 | interface nsIHandlerInfo; |
michael@0 | 8 | interface nsIHelperAppLauncher; |
michael@0 | 9 | interface nsIURI; |
michael@0 | 10 | interface nsIInterfaceRequestor; |
michael@0 | 11 | |
michael@0 | 12 | /** |
michael@0 | 13 | * This is used to ask a user what they would like to do with a given piece of |
michael@0 | 14 | * content. |
michael@0 | 15 | */ |
michael@0 | 16 | [scriptable, uuid(456ca3b2-02be-4f97-89a2-08c08d3ad88f)] |
michael@0 | 17 | interface nsIContentDispatchChooser : nsISupports { |
michael@0 | 18 | /** |
michael@0 | 19 | * This request is passed to the helper app dialog because Gecko can not |
michael@0 | 20 | * handle content of this type. |
michael@0 | 21 | */ |
michael@0 | 22 | const unsigned long REASON_CANNOT_HANDLE = 0; |
michael@0 | 23 | |
michael@0 | 24 | /** |
michael@0 | 25 | * Asks the user what to do with the content. |
michael@0 | 26 | * |
michael@0 | 27 | * @param aHander |
michael@0 | 28 | * The interface describing the details of how this content should or |
michael@0 | 29 | * can be handled. |
michael@0 | 30 | * @param aWindowContext |
michael@0 | 31 | * The parent window context to show this chooser. This can be null, |
michael@0 | 32 | * and some implementations may not care about it. Generally, you'll |
michael@0 | 33 | * want to pass an nsIDOMWindow in so the chooser can be properly |
michael@0 | 34 | * parented when opened. |
michael@0 | 35 | * @param aURI |
michael@0 | 36 | * The URI of the resource that we are asking about. |
michael@0 | 37 | * @param aReason |
michael@0 | 38 | * The reason why we are asking (see above). |
michael@0 | 39 | */ |
michael@0 | 40 | void ask(in nsIHandlerInfo aHandler, |
michael@0 | 41 | in nsIInterfaceRequestor aWindowContext, |
michael@0 | 42 | in nsIURI aURI, |
michael@0 | 43 | in unsigned long aReason); |
michael@0 | 44 | }; |
michael@0 | 45 |