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
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsISupports.idl"
7 interface nsIClipboardDragDropHooks;
8 interface nsISimpleEnumerator;
11 /**
12 * Please note that the following api is not intended for embedders;
13 * it is intended as an internal (to gecko). Embedders can indirectly
14 * call these by sending commands (see description in
15 * nsIClipboardDragDropHooks.idl).
16 *
17 * Internal gecko usage is accomplished by calling get_Interface on a
18 * docshell.
19 */
22 // 876A2015-6B66-11D7-8F18-0003938A9D96
23 [scriptable,uuid(876A2015-6B66-11D7-8F18-0003938A9D96)]
24 interface nsIClipboardDragDropHookList : nsISupports
25 {
26 /**
27 * Add a hook to list.
28 * @param aHooks implementation of hooks
29 */
30 void addClipboardDragDropHooks(in nsIClipboardDragDropHooks aHooks);
32 /**
33 * Remove a hook from list (note if this implementation is not present
34 * in the list then removal will be ignored).
35 * @param aHooks implementation of hooks
36 */
37 void removeClipboardDragDropHooks(in nsIClipboardDragDropHooks aHooks);
39 /**
40 * Gets an enumerator for all hooks which have been added.
41 * @return nsISimpleEnumerator for nsIClipboardDragDropHooks
42 */
43 nsISimpleEnumerator getHookEnumerator();
44 };