1 module org.eclipse.swt.internal.mozilla.nsIContextMenuListener;
2 
3 import java.lang.all;
4 
5 import org.eclipse.swt.internal.mozilla.Common;
6 import org.eclipse.swt.internal.mozilla.nsID;
7 import org.eclipse.swt.internal.mozilla.nsISupports;
8 import org.eclipse.swt.internal.mozilla.nsIDOMEvent; 
9 import org.eclipse.swt.internal.mozilla.nsIDOMNode; 
10 
11 const char[] NS_ICONTEXTMENULISTENER_IID_STR = "3478b6b0-3875-11d4-94ef-0020183bf181";
12 
13 const nsIID NS_ICONTEXTMENULISTENER_IID= 
14   {0x3478b6b0, 0x3875, 0x11d4, 
15     [ 0x94, 0xef, 0x00, 0x20, 0x18, 0x3b, 0xf1, 0x81 ]};
16 
17 interface nsIContextMenuListener : nsISupports {
18 
19   static const char[] IID_STR = NS_ICONTEXTMENULISTENER_IID_STR;
20   static const nsIID IID = NS_ICONTEXTMENULISTENER_IID;
21 
22 extern(System):
23   enum { CONTEXT_NONE = 0U };
24   enum { CONTEXT_LINK = 1U };
25   enum { CONTEXT_IMAGE = 2U };
26   enum { CONTEXT_DOCUMENT = 4U };
27   enum { CONTEXT_TEXT = 8U };
28   enum { CONTEXT_INPUT = 16U };
29 
30   nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent aEvent, nsIDOMNode aNode);
31 }
32