1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/nsIClipboardDragDropHookList.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,45 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +interface nsIClipboardDragDropHooks; 1.11 +interface nsISimpleEnumerator; 1.12 + 1.13 + 1.14 +/** 1.15 + * Please note that the following api is not intended for embedders; 1.16 + * it is intended as an internal (to gecko). Embedders can indirectly 1.17 + * call these by sending commands (see description in 1.18 + * nsIClipboardDragDropHooks.idl). 1.19 + * 1.20 + * Internal gecko usage is accomplished by calling get_Interface on a 1.21 + * docshell. 1.22 + */ 1.23 + 1.24 + 1.25 +// 876A2015-6B66-11D7-8F18-0003938A9D96 1.26 +[scriptable,uuid(876A2015-6B66-11D7-8F18-0003938A9D96)] 1.27 +interface nsIClipboardDragDropHookList : nsISupports 1.28 +{ 1.29 + /** 1.30 + * Add a hook to list. 1.31 + * @param aHooks implementation of hooks 1.32 + */ 1.33 + void addClipboardDragDropHooks(in nsIClipboardDragDropHooks aHooks); 1.34 + 1.35 + /** 1.36 + * Remove a hook from list (note if this implementation is not present 1.37 + * in the list then removal will be ignored). 1.38 + * @param aHooks implementation of hooks 1.39 + */ 1.40 + void removeClipboardDragDropHooks(in nsIClipboardDragDropHooks aHooks); 1.41 + 1.42 + /** 1.43 + * Gets an enumerator for all hooks which have been added. 1.44 + * @return nsISimpleEnumerator for nsIClipboardDragDropHooks 1.45 + */ 1.46 + nsISimpleEnumerator getHookEnumerator(); 1.47 +}; 1.48 +