1 // THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl
2 // EDITING IS PROBABLY UNWISE
3 // Permission is hereby granted, free of charge, to any person obtaining
4 // a copy of this software and associated documentation files (the
5 // "Software"), to deal in the Software without restriction, including
6 // without limitation the rights to use, copy, modify, merge, publish,
7 // distribute, sublicense, and/or sell copies of the Software, and to
8 // permit persons to whom the Software is furnished to do so, subject to
9 // the following conditions:
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 // Copyright (c) 2007, 2008 Novell, Inc.
25 // Andreia Gaita (avidigal@novell.com)
29 using System
.Runtime
.InteropServices
;
30 using System
.Runtime
.CompilerServices
;
33 namespace Mono
.Mozilla
{
35 [Guid ("ff751edc-8b02-aae7-0010-8301838a3123")]
36 [InterfaceType (ComInterfaceType
.InterfaceIsIUnknown
)]
38 internal interface nsIDOMMouseEvent
: nsIDOMUIEvent
{
40 [PreserveSigAttribute
]
41 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
42 int getType ( /*DOMString*/ HandleRef ret
);
44 [PreserveSigAttribute
]
45 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
46 int getTarget ([MarshalAs (UnmanagedType
.Interface
)] out nsIDOMEventTarget ret
);
48 [PreserveSigAttribute
]
49 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
50 int getCurrentTarget ([MarshalAs (UnmanagedType
.Interface
)] out nsIDOMEventTarget ret
);
52 [PreserveSigAttribute
]
53 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
54 int getEventPhase ( out ushort ret
);
56 [PreserveSigAttribute
]
57 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
58 int getBubbles ( out bool ret
);
60 [PreserveSigAttribute
]
61 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
62 int getCancelable ( out bool ret
);
64 [PreserveSigAttribute
]
65 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
66 int getTimeStamp ( out int ret
);
68 [PreserveSigAttribute
]
69 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
70 int stopPropagation ();
72 [PreserveSigAttribute
]
73 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
74 int preventDefault ();
76 [PreserveSigAttribute
]
77 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
79 /*DOMString*/ HandleRef eventTypeArg
,
86 [PreserveSigAttribute
]
87 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
88 int getView ([MarshalAs (UnmanagedType
.Interface
)] out nsIDOMAbstractView ret
);
90 [PreserveSigAttribute
]
91 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
92 int getDetail ( out int ret
);
94 [PreserveSigAttribute
]
95 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
97 /*DOMString*/ HandleRef typeArg
,
100 [MarshalAs (UnmanagedType
.Interface
)] nsIDOMAbstractView viewArg
,
105 #region nsIDOMMouseEvent
106 [PreserveSigAttribute
]
107 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
108 int getScreenX ( out int ret
);
110 [PreserveSigAttribute
]
111 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
112 int getScreenY ( out int ret
);
114 [PreserveSigAttribute
]
115 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
116 int getClientX ( out int ret
);
118 [PreserveSigAttribute
]
119 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
120 int getClientY ( out int ret
);
122 [PreserveSigAttribute
]
123 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
124 int getCtrlKey ( out bool ret
);
126 [PreserveSigAttribute
]
127 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
128 int getShiftKey ( out bool ret
);
130 [PreserveSigAttribute
]
131 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
132 int getAltKey ( out bool ret
);
134 [PreserveSigAttribute
]
135 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
136 int getMetaKey ( out bool ret
);
138 [PreserveSigAttribute
]
139 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
140 int getButton ( out ushort ret
);
142 [PreserveSigAttribute
]
143 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
144 int getRelatedTarget ([MarshalAs (UnmanagedType
.Interface
)] out nsIDOMEventTarget ret
);
146 [PreserveSigAttribute
]
147 [MethodImpl (MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
149 /*DOMString*/ HandleRef typeArg
,
152 [MarshalAs (UnmanagedType
.Interface
)] nsIDOMAbstractView viewArg
,
163 [MarshalAs (UnmanagedType
.Interface
)] nsIDOMEventTarget relatedTargetArg
);
169 internal class nsDOMMouseEvent
{
170 public static nsIDOMMouseEvent
GetProxy (Mono
.WebBrowser
.IWebBrowser control
, nsIDOMMouseEvent obj
)
172 object o
= Base
.GetProxyForObject (control
, typeof(nsIDOMMouseEvent
).GUID
, obj
);
173 return o
as nsIDOMMouseEvent
;