Make remaining OLE interface vtables const.
[wine/wine64.git] / dlls / shdocvw / webbrowser.c
blobd750f10359af576ee065025312b1474afa03a4b4
1 /*
2 * Implementation of IWebBrowser interface for IE Web Browser control
4 * Copyright 2001 John R. Sheets (for CodeWeavers)
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "wine/debug.h"
22 #include "shdocvw.h"
24 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
26 /**********************************************************************
27 * Implement the IWebBrowser interface
30 static HRESULT WINAPI WB_QueryInterface(IWebBrowser *iface, REFIID riid, LPVOID *ppobj)
32 FIXME("- no interface\n\tIID:\t%s\n", debugstr_guid(riid));
34 if (ppobj == NULL) return E_POINTER;
36 return E_NOINTERFACE;
39 static ULONG WINAPI WB_AddRef(IWebBrowser *iface)
41 SHDOCVW_LockModule();
43 return 2; /* non-heap based object */
46 static ULONG WINAPI WB_Release(IWebBrowser *iface)
48 SHDOCVW_UnlockModule();
50 return 1; /* non-heap based object */
53 /* IDispatch methods */
54 static HRESULT WINAPI WB_GetTypeInfoCount(IWebBrowser *iface, UINT *pctinfo)
56 FIXME("stub \n");
57 return S_OK;
60 static HRESULT WINAPI WB_GetTypeInfo(IWebBrowser *iface, UINT iTInfo, LCID lcid,
61 LPTYPEINFO *ppTInfo)
63 FIXME("stub \n");
64 return S_OK;
67 static HRESULT WINAPI WB_GetIDsOfNames(IWebBrowser *iface, REFIID riid,
68 LPOLESTR *rgszNames, UINT cNames,
69 LCID lcid, DISPID *rgDispId)
71 FIXME("stub \n");
72 return S_OK;
75 static HRESULT WINAPI WB_Invoke(IWebBrowser *iface, DISPID dispIdMember,
76 REFIID riid, LCID lcid, WORD wFlags,
77 DISPPARAMS *pDispParams, VARIANT *pVarResult,
78 EXCEPINFO *pExepInfo, UINT *puArgErr)
80 FIXME("stub dispIdMember = %d, IID = %s\n", (int)dispIdMember, debugstr_guid(riid));
81 return S_OK;
84 /* IWebBrowser methods */
85 static HRESULT WINAPI WB_GoBack(IWebBrowser *iface)
87 FIXME("stub \n");
88 return S_OK;
91 static HRESULT WINAPI WB_GoForward(IWebBrowser *iface)
93 FIXME("stub \n");
94 return S_OK;
97 static HRESULT WINAPI WB_GoHome(IWebBrowser *iface)
99 FIXME("stub \n");
100 return S_OK;
103 static HRESULT WINAPI WB_GoSearch(IWebBrowser *iface)
105 FIXME("stub \n");
106 return S_OK;
109 static HRESULT WINAPI WB_Navigate(IWebBrowser *iface, BSTR URL,
110 VARIANT *Flags, VARIANT *TargetFrameName,
111 VARIANT *PostData, VARIANT *Headers)
113 FIXME("stub: URL = %p (%p, %p, %p, %p)\n", URL, Flags, TargetFrameName,
114 PostData, Headers);
115 return S_OK;
118 static HRESULT WINAPI WB_Refresh(IWebBrowser *iface)
120 FIXME("stub \n");
121 return S_OK;
124 static HRESULT WINAPI WB_Refresh2(IWebBrowser *iface, VARIANT *Level)
126 FIXME("stub: %p\n", Level);
127 return S_OK;
130 static HRESULT WINAPI WB_Stop(IWebBrowser *iface)
132 FIXME("stub \n");
133 return S_OK;
136 static HRESULT WINAPI WB_get_Application(IWebBrowser *iface, IDispatch **ppDisp)
138 FIXME("stub \n");
139 return S_OK;
142 static HRESULT WINAPI WB_get_Parent(IWebBrowser *iface, IDispatch **ppDisp)
144 FIXME("stub \n");
145 return S_OK;
148 static HRESULT WINAPI WB_get_Container(IWebBrowser *iface, IDispatch **ppDisp)
150 FIXME("stub \n");
151 return S_OK;
154 static HRESULT WINAPI WB_get_Document(IWebBrowser *iface, IDispatch **ppDisp)
156 FIXME("stub \n");
157 return S_OK;
160 static HRESULT WINAPI WB_get_TopLevelContainer(IWebBrowser *iface, VARIANT_BOOL *pBool)
162 FIXME("stub \n");
163 return S_OK;
166 static HRESULT WINAPI WB_get_Type(IWebBrowser *iface, BSTR *Type)
168 FIXME("stub \n");
169 return S_OK;
172 static HRESULT WINAPI WB_get_Left(IWebBrowser *iface, long *pl)
174 FIXME("stub \n");
175 return S_OK;
178 static HRESULT WINAPI WB_put_Left(IWebBrowser *iface, long Left)
180 FIXME("stub \n");
181 return S_OK;
184 static HRESULT WINAPI WB_get_Top(IWebBrowser *iface, long *pl)
186 FIXME("stub \n");
187 return S_OK;
190 static HRESULT WINAPI WB_put_Top(IWebBrowser *iface, long Top)
192 FIXME("stub \n");
193 return S_OK;
196 static HRESULT WINAPI WB_get_Width(IWebBrowser *iface, long *pl)
198 FIXME("stub \n");
199 return S_OK;
202 static HRESULT WINAPI WB_put_Width(IWebBrowser *iface, long Width)
204 FIXME("stub \n");
205 return S_OK;
208 static HRESULT WINAPI WB_get_Height(IWebBrowser *iface, long *pl)
210 FIXME("stub \n");
211 return S_OK;
214 static HRESULT WINAPI WB_put_Height(IWebBrowser *iface, long Height)
216 FIXME("stub \n");
217 return S_OK;
220 static HRESULT WINAPI WB_get_LocationName(IWebBrowser *iface, BSTR *LocationName)
222 FIXME("stub \n");
223 return S_OK;
226 static HRESULT WINAPI WB_get_LocationURL(IWebBrowser *iface, BSTR *LocationURL)
228 FIXME("stub \n");
229 return S_OK;
232 static HRESULT WINAPI WB_get_Busy(IWebBrowser *iface, VARIANT_BOOL *pBool)
234 FIXME("stub \n");
235 return S_OK;
238 /**********************************************************************
239 * IWebBrowser virtual function table for IE Web Browser component
242 static const IWebBrowserVtbl WB_Vtbl =
244 WB_QueryInterface,
245 WB_AddRef,
246 WB_Release,
247 WB_GetTypeInfoCount,
248 WB_GetTypeInfo,
249 WB_GetIDsOfNames,
250 WB_Invoke,
251 WB_GoBack,
252 WB_GoForward,
253 WB_GoHome,
254 WB_GoSearch,
255 WB_Navigate,
256 WB_Refresh,
257 WB_Refresh2,
258 WB_Stop,
259 WB_get_Application,
260 WB_get_Parent,
261 WB_get_Container,
262 WB_get_Document,
263 WB_get_TopLevelContainer,
264 WB_get_Type,
265 WB_get_Left,
266 WB_put_Left,
267 WB_get_Top,
268 WB_put_Top,
269 WB_get_Width,
270 WB_put_Width,
271 WB_get_Height,
272 WB_put_Height,
273 WB_get_LocationName,
274 WB_get_LocationURL,
275 WB_get_Busy
278 IWebBrowserImpl SHDOCVW_WebBrowser = {&WB_Vtbl};