2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / class / Mono.WebBrowser / Mono.Mozilla / interfaces / nsIDOMMouseEvent.cs
blobd69f56d5d2887bb5eef0592632917b1522d04055
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:
10 //
11 // The above copyright notice and this permission notice shall be
12 // included in all copies or substantial portions of the Software.
13 //
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.
24 // Authors:
25 // Andreia Gaita (avidigal@novell.com)
28 using System;
29 using System.Runtime.InteropServices;
30 using System.Runtime.CompilerServices;
31 using System.Text;
33 namespace Mono.Mozilla {
35 [Guid ("ff751edc-8b02-aae7-0010-8301838a3123")]
36 [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)]
37 [ComImport ()]
38 internal interface nsIDOMMouseEvent : nsIDOMUIEvent {
39 #region nsIDOMEvent
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)]
78 int initEvent (
79 /*DOMString*/ HandleRef eventTypeArg,
80 bool canBubbleArg,
81 bool cancelableArg);
83 #endregion
85 #region nsIDOMUIEvent
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)]
96 int initUIEvent (
97 /*DOMString*/ HandleRef typeArg,
98 bool canBubbleArg,
99 bool cancelableArg,
100 [MarshalAs (UnmanagedType.Interface)] nsIDOMAbstractView viewArg,
101 int detailArg);
103 #endregion
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)]
148 int initMouseEvent (
149 /*DOMString*/ HandleRef typeArg,
150 bool canBubbleArg,
151 bool cancelableArg,
152 [MarshalAs (UnmanagedType.Interface)] nsIDOMAbstractView viewArg,
153 int detailArg,
154 int screenXArg,
155 int screenYArg,
156 int clientXArg,
157 int clientYArg,
158 bool ctrlKeyArg,
159 bool altKeyArg,
160 bool shiftKeyArg,
161 bool metaKeyArg,
162 ushort buttonArg,
163 [MarshalAs (UnmanagedType.Interface)] nsIDOMEventTarget relatedTargetArg);
165 #endregion
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;