Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 nsIClipboardDragDropHooks; |
michael@0 | 8 | interface nsISimpleEnumerator; |
michael@0 | 9 | |
michael@0 | 10 | |
michael@0 | 11 | /** |
michael@0 | 12 | * Please note that the following api is not intended for embedders; |
michael@0 | 13 | * it is intended as an internal (to gecko). Embedders can indirectly |
michael@0 | 14 | * call these by sending commands (see description in |
michael@0 | 15 | * nsIClipboardDragDropHooks.idl). |
michael@0 | 16 | * |
michael@0 | 17 | * Internal gecko usage is accomplished by calling get_Interface on a |
michael@0 | 18 | * docshell. |
michael@0 | 19 | */ |
michael@0 | 20 | |
michael@0 | 21 | |
michael@0 | 22 | // 876A2015-6B66-11D7-8F18-0003938A9D96 |
michael@0 | 23 | [scriptable,uuid(876A2015-6B66-11D7-8F18-0003938A9D96)] |
michael@0 | 24 | interface nsIClipboardDragDropHookList : nsISupports |
michael@0 | 25 | { |
michael@0 | 26 | /** |
michael@0 | 27 | * Add a hook to list. |
michael@0 | 28 | * @param aHooks implementation of hooks |
michael@0 | 29 | */ |
michael@0 | 30 | void addClipboardDragDropHooks(in nsIClipboardDragDropHooks aHooks); |
michael@0 | 31 | |
michael@0 | 32 | /** |
michael@0 | 33 | * Remove a hook from list (note if this implementation is not present |
michael@0 | 34 | * in the list then removal will be ignored). |
michael@0 | 35 | * @param aHooks implementation of hooks |
michael@0 | 36 | */ |
michael@0 | 37 | void removeClipboardDragDropHooks(in nsIClipboardDragDropHooks aHooks); |
michael@0 | 38 | |
michael@0 | 39 | /** |
michael@0 | 40 | * Gets an enumerator for all hooks which have been added. |
michael@0 | 41 | * @return nsISimpleEnumerator for nsIClipboardDragDropHooks |
michael@0 | 42 | */ |
michael@0 | 43 | nsISimpleEnumerator getHookEnumerator(); |
michael@0 | 44 | }; |
michael@0 | 45 |