ReactOS  0.4.14-dev-317-g96040ec
webbrowser.c File Reference
#include "ieframe.h"
#include "exdispid.h"
#include "mshtml.h"
#include "wine/debug.h"
Include dependency graph for webbrowser.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (ieframe)
 
static WebBrowserimpl_from_IWebBrowser2 (IWebBrowser2 *iface)
 
static HRESULT WINAPI WebBrowser_QueryInterface (IWebBrowser2 *iface, REFIID riid, LPVOID *ppv)
 
static ULONG WINAPI WebBrowser_AddRef (IWebBrowser2 *iface)
 
static ULONG WINAPI WebBrowser_Release (IWebBrowser2 *iface)
 
static HRESULT WINAPI WebBrowser_GetTypeInfoCount (IWebBrowser2 *iface, UINT *pctinfo)
 
static HRESULT WINAPI WebBrowser_GetTypeInfo (IWebBrowser2 *iface, UINT iTInfo, LCID lcid, LPTYPEINFO *ppTInfo)
 
static HRESULT WINAPI WebBrowser_GetIDsOfNames (IWebBrowser2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI WebBrowser_Invoke (IWebBrowser2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExepInfo, UINT *puArgErr)
 
static HRESULT WINAPI WebBrowser_GoBack (IWebBrowser2 *iface)
 
static HRESULT WINAPI WebBrowser_GoForward (IWebBrowser2 *iface)
 
static HRESULT WINAPI WebBrowser_GoHome (IWebBrowser2 *iface)
 
static HRESULT WINAPI WebBrowser_GoSearch (IWebBrowser2 *iface)
 
static HRESULT WINAPI WebBrowser_Navigate (IWebBrowser2 *iface, BSTR szUrl, VARIANT *Flags, VARIANT *TargetFrameName, VARIANT *PostData, VARIANT *Headers)
 
static HRESULT WINAPI WebBrowser_Refresh (IWebBrowser2 *iface)
 
static HRESULT WINAPI WebBrowser_Refresh2 (IWebBrowser2 *iface, VARIANT *Level)
 
static HRESULT WINAPI WebBrowser_Stop (IWebBrowser2 *iface)
 
static HRESULT WINAPI WebBrowser_get_Application (IWebBrowser2 *iface, IDispatch **ppDisp)
 
static HRESULT WINAPI WebBrowser_get_Parent (IWebBrowser2 *iface, IDispatch **ppDisp)
 
static HRESULT WINAPI WebBrowser_get_Container (IWebBrowser2 *iface, IDispatch **ppDisp)
 
static HRESULT WINAPI WebBrowser_get_Document (IWebBrowser2 *iface, IDispatch **ppDisp)
 
static HRESULT WINAPI WebBrowser_get_TopLevelContainer (IWebBrowser2 *iface, VARIANT_BOOL *pBool)
 
static HRESULT WINAPI WebBrowser_get_Type (IWebBrowser2 *iface, BSTR *Type)
 
static HRESULT WINAPI WebBrowser_get_Left (IWebBrowser2 *iface, LONG *pl)
 
static HRESULT WINAPI WebBrowser_put_Left (IWebBrowser2 *iface, LONG Left)
 
static HRESULT WINAPI WebBrowser_get_Top (IWebBrowser2 *iface, LONG *pl)
 
static HRESULT WINAPI WebBrowser_put_Top (IWebBrowser2 *iface, LONG Top)
 
static HRESULT WINAPI WebBrowser_get_Width (IWebBrowser2 *iface, LONG *pl)
 
static HRESULT WINAPI WebBrowser_put_Width (IWebBrowser2 *iface, LONG Width)
 
static HRESULT WINAPI WebBrowser_get_Height (IWebBrowser2 *iface, LONG *pl)
 
static HRESULT WINAPI WebBrowser_put_Height (IWebBrowser2 *iface, LONG Height)
 
static HRESULT WINAPI WebBrowser_get_LocationName (IWebBrowser2 *iface, BSTR *LocationName)
 
static HRESULT WINAPI WebBrowser_get_LocationURL (IWebBrowser2 *iface, BSTR *LocationURL)
 
static HRESULT WINAPI WebBrowser_get_Busy (IWebBrowser2 *iface, VARIANT_BOOL *pBool)
 
static HRESULT WINAPI WebBrowser_Quit (IWebBrowser2 *iface)
 
static HRESULT WINAPI WebBrowser_ClientToWindow (IWebBrowser2 *iface, int *pcx, int *pcy)
 
static HRESULT WINAPI WebBrowser_PutProperty (IWebBrowser2 *iface, BSTR szProperty, VARIANT vtValue)
 
static HRESULT WINAPI WebBrowser_GetProperty (IWebBrowser2 *iface, BSTR szProperty, VARIANT *pvtValue)
 
static HRESULT WINAPI WebBrowser_get_Name (IWebBrowser2 *iface, BSTR *Name)
 
static HRESULT WINAPI WebBrowser_get_HWND (IWebBrowser2 *iface, SHANDLE_PTR *pHWND)
 
static HRESULT WINAPI WebBrowser_get_FullName (IWebBrowser2 *iface, BSTR *FullName)
 
static HRESULT WINAPI WebBrowser_get_Path (IWebBrowser2 *iface, BSTR *Path)
 
static HRESULT WINAPI WebBrowser_get_Visible (IWebBrowser2 *iface, VARIANT_BOOL *pBool)
 
static HRESULT WINAPI WebBrowser_put_Visible (IWebBrowser2 *iface, VARIANT_BOOL Value)
 
static HRESULT WINAPI WebBrowser_get_StatusBar (IWebBrowser2 *iface, VARIANT_BOOL *pBool)
 
static HRESULT WINAPI WebBrowser_put_StatusBar (IWebBrowser2 *iface, VARIANT_BOOL Value)
 
static HRESULT WINAPI WebBrowser_get_StatusText (IWebBrowser2 *iface, BSTR *StatusText)
 
static HRESULT WINAPI WebBrowser_put_StatusText (IWebBrowser2 *iface, BSTR StatusText)
 
static HRESULT WINAPI WebBrowser_get_ToolBar (IWebBrowser2 *iface, int *Value)
 
static HRESULT WINAPI WebBrowser_put_ToolBar (IWebBrowser2 *iface, int Value)
 
static HRESULT WINAPI WebBrowser_get_MenuBar (IWebBrowser2 *iface, VARIANT_BOOL *Value)
 
static HRESULT WINAPI WebBrowser_put_MenuBar (IWebBrowser2 *iface, VARIANT_BOOL Value)
 
static HRESULT WINAPI WebBrowser_get_FullScreen (IWebBrowser2 *iface, VARIANT_BOOL *pbFullScreen)
 
static HRESULT WINAPI WebBrowser_put_FullScreen (IWebBrowser2 *iface, VARIANT_BOOL bFullScreen)
 
static HRESULT WINAPI WebBrowser_Navigate2 (IWebBrowser2 *iface, VARIANT *URL, VARIANT *Flags, VARIANT *TargetFrameName, VARIANT *PostData, VARIANT *Headers)
 
static HRESULT WINAPI WebBrowser_QueryStatusWB (IWebBrowser2 *iface, OLECMDID cmdID, OLECMDF *pcmdf)
 
static HRESULT WINAPI WebBrowser_ExecWB (IWebBrowser2 *iface, OLECMDID cmdID, OLECMDEXECOPT cmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
 
static HRESULT WINAPI WebBrowser_ShowBrowserBar (IWebBrowser2 *iface, VARIANT *pvaClsid, VARIANT *pvarShow, VARIANT *pvarSize)
 
static HRESULT WINAPI WebBrowser_get_ReadyState (IWebBrowser2 *iface, READYSTATE *lpReadyState)
 
static HRESULT WINAPI WebBrowser_get_Offline (IWebBrowser2 *iface, VARIANT_BOOL *pbOffline)
 
static HRESULT WINAPI WebBrowser_put_Offline (IWebBrowser2 *iface, VARIANT_BOOL bOffline)
 
static HRESULT WINAPI WebBrowser_get_Silent (IWebBrowser2 *iface, VARIANT_BOOL *pbSilent)
 
static HRESULT WINAPI WebBrowser_put_Silent (IWebBrowser2 *iface, VARIANT_BOOL bSilent)
 
static HRESULT WINAPI WebBrowser_get_RegisterAsBrowser (IWebBrowser2 *iface, VARIANT_BOOL *pbRegister)
 
static HRESULT WINAPI WebBrowser_put_RegisterAsBrowser (IWebBrowser2 *iface, VARIANT_BOOL bRegister)
 
static HRESULT WINAPI WebBrowser_get_RegisterAsDropTarget (IWebBrowser2 *iface, VARIANT_BOOL *pbRegister)
 
static HRESULT WINAPI WebBrowser_put_RegisterAsDropTarget (IWebBrowser2 *iface, VARIANT_BOOL bRegister)
 
static HRESULT WINAPI WebBrowser_get_TheaterMode (IWebBrowser2 *iface, VARIANT_BOOL *pbRegister)
 
static HRESULT WINAPI WebBrowser_put_TheaterMode (IWebBrowser2 *iface, VARIANT_BOOL bRegister)
 
static HRESULT WINAPI WebBrowser_get_AddressBar (IWebBrowser2 *iface, VARIANT_BOOL *Value)
 
static HRESULT WINAPI WebBrowser_put_AddressBar (IWebBrowser2 *iface, VARIANT_BOOL Value)
 
static HRESULT WINAPI WebBrowser_get_Resizable (IWebBrowser2 *iface, VARIANT_BOOL *Value)
 
static HRESULT WINAPI WebBrowser_put_Resizable (IWebBrowser2 *iface, VARIANT_BOOL Value)
 
static WebBrowserimpl_from_IServiceProvider (IServiceProvider *iface)
 
static HRESULT WINAPI WBServiceProvider_QueryInterface (IServiceProvider *iface, REFIID riid, LPVOID *ppv)
 
static ULONG WINAPI WBServiceProvider_AddRef (IServiceProvider *iface)
 
static ULONG WINAPI WBServiceProvider_Release (IServiceProvider *iface)
 
static HRESULT STDMETHODCALLTYPE WBServiceProvider_QueryService (IServiceProvider *iface, REFGUID guidService, REFIID riid, void **ppv)
 
static WebBrowserimpl_from_DocHost (DocHost *iface)
 
static ULONG WebBrowser_addref (DocHost *iface)
 
static ULONG WebBrowser_release (DocHost *iface)
 
static void DocHostContainer_get_docobj_rect (DocHost *This, RECT *rc)
 
static HRESULT DocHostContainer_set_status_text (DocHost *This, const WCHAR *text)
 
static void DocHostContainer_on_command_state_change (DocHost *This, LONG command, BOOL enable)
 
static void DocHostContainer_set_url (DocHost *This, const WCHAR *url)
 
static HRESULT create_webbrowser (int version, IUnknown *outer, REFIID riid, void **ppv)
 
HRESULT WINAPI WebBrowserV1_Create (IClassFactory *iface, IUnknown *pOuter, REFIID riid, void **ppv)
 
HRESULT WINAPI WebBrowser_Create (IClassFactory *iface, IUnknown *pOuter, REFIID riid, void **ppv)
 

Variables

static const IWebBrowser2Vtbl WebBrowser2Vtbl
 
static const IServiceProviderVtbl ServiceProviderVtbl
 
static const IDocHostContainerVtbl DocHostContainerVtbl
 

Function Documentation

◆ create_webbrowser()

static HRESULT create_webbrowser ( int  version,
IUnknown outer,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1227 of file webbrowser.c.

1228 {
1229  WebBrowser *ret;
1230  HRESULT hres;
1231 
1232  TRACE("(%p %s %p) version=%d\n", outer, debugstr_guid(riid), ppv, version);
1233 
1234  ret = heap_alloc_zero(sizeof(WebBrowser));
1235 
1236  ret->IWebBrowser2_iface.lpVtbl = &WebBrowser2Vtbl;
1237  ret->IServiceProvider_iface.lpVtbl = &ServiceProviderVtbl;
1238  ret->ref = 1;
1239  ret->version = version;
1240 
1241  DocHost_Init(&ret->doc_host, &ret->IWebBrowser2_iface, &DocHostContainerVtbl);
1242 
1243  ret->visible = VARIANT_TRUE;
1244  ret->menu_bar = VARIANT_TRUE;
1245  ret->address_bar = VARIANT_TRUE;
1246  ret->status_bar = VARIANT_TRUE;
1247  ret->tool_bar = VARIANT_TRUE;
1248 
1253 
1254  HlinkFrame_Init(&ret->hlink_frame, (IUnknown*)&ret->IWebBrowser2_iface, &ret->doc_host);
1255 
1256  lock_module();
1257 
1258  hres = IWebBrowser2_QueryInterface(&ret->IWebBrowser2_iface, riid, ppv);
1259 
1260  IWebBrowser2_Release(&ret->IWebBrowser2_iface);
1261  return hres;
1262 }
static const IWebBrowser2Vtbl WebBrowser2Vtbl
Definition: webbrowser.c:1055
static const IServiceProviderVtbl ServiceProviderVtbl
Definition: webbrowser.c:1175
REFIID riid
Definition: precomp.h:44
void HlinkFrame_Init(HlinkFrame *, IUnknown *, DocHost *) DECLSPEC_HIDDEN
Definition: navigate.c:1694
REFIID LPVOID * ppv
Definition: atlbase.h:39
void WebBrowser_Persist_Init(WebBrowser *) DECLSPEC_HIDDEN
Definition: persist.c:279
void DocHost_Init(DocHost *This, IWebBrowser2 *wb, const IDocHostContainerVtbl *container)
Definition: dochost.c:1106
void WebBrowser_OleObject_Init(WebBrowser *) DECLSPEC_HIDDEN
Definition: oleobject.c:1199
static const WCHAR version[]
Definition: asmname.c:66
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
int ret
static void lock_module(void)
Definition: ieframe.h:335
void WebBrowser_ViewObject_Init(WebBrowser *) DECLSPEC_HIDDEN
Definition: view.c:253
void WebBrowser_ClassInfo_Init(WebBrowser *This)
Definition: classinfo.c:100
static const IDocHostContainerVtbl DocHostContainerVtbl
Definition: webbrowser.c:1218

Referenced by WebBrowser_Create(), and WebBrowserV1_Create().

◆ DocHostContainer_get_docobj_rect()

static void DocHostContainer_get_docobj_rect ( DocHost This,
RECT rc 
)
static

Definition at line 1200 of file webbrowser.c.

1201 {
1202  GetClientRect(This->frame_hwnd, rc);
1203 }
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)

◆ DocHostContainer_on_command_state_change()

static void DocHostContainer_on_command_state_change ( DocHost This,
LONG  command,
BOOL  enable 
)
static

Definition at line 1210 of file webbrowser.c.

1211 {
1212 }

◆ DocHostContainer_set_status_text()

static HRESULT DocHostContainer_set_status_text ( DocHost This,
const WCHAR text 
)
static

Definition at line 1205 of file webbrowser.c.

1206 {
1207  return E_NOTIMPL;
1208 }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ DocHostContainer_set_url()

static void DocHostContainer_set_url ( DocHost This,
const WCHAR url 
)
static

Definition at line 1214 of file webbrowser.c.

1215 {
1216 }

◆ impl_from_DocHost()

static WebBrowser* impl_from_DocHost ( DocHost iface)
inlinestatic

Definition at line 1183 of file webbrowser.c.

1184 {
1185  return CONTAINING_RECORD(iface, WebBrowser, doc_host);
1186 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by WebBrowser_addref(), and WebBrowser_release().

◆ impl_from_IServiceProvider()

static WebBrowser* impl_from_IServiceProvider ( IServiceProvider iface)
inlinestatic

Definition at line 1130 of file webbrowser.c.

1131 {
1132  return CONTAINING_RECORD(iface, WebBrowser, IServiceProvider_iface);
1133 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by WBServiceProvider_AddRef(), WBServiceProvider_QueryInterface(), WBServiceProvider_QueryService(), and WBServiceProvider_Release().

◆ impl_from_IWebBrowser2()

static WebBrowser* impl_from_IWebBrowser2 ( IWebBrowser2 *  iface)
inlinestatic

Definition at line 31 of file webbrowser.c.

32 {
33  return CONTAINING_RECORD(iface, WebBrowser, IWebBrowser2_iface);
34 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by WebBrowser_AddRef(), WebBrowser_ClientToWindow(), WebBrowser_ExecWB(), WebBrowser_get_AddressBar(), WebBrowser_get_Application(), WebBrowser_get_Busy(), WebBrowser_get_Container(), WebBrowser_get_Document(), WebBrowser_get_FullName(), WebBrowser_get_FullScreen(), WebBrowser_get_Height(), WebBrowser_get_HWND(), WebBrowser_get_Left(), WebBrowser_get_LocationName(), WebBrowser_get_LocationURL(), WebBrowser_get_MenuBar(), WebBrowser_get_Name(), WebBrowser_get_Offline(), WebBrowser_get_Parent(), WebBrowser_get_Path(), WebBrowser_get_ReadyState(), WebBrowser_get_RegisterAsBrowser(), WebBrowser_get_RegisterAsDropTarget(), WebBrowser_get_Resizable(), WebBrowser_get_Silent(), WebBrowser_get_StatusBar(), WebBrowser_get_StatusText(), WebBrowser_get_TheaterMode(), WebBrowser_get_ToolBar(), WebBrowser_get_Top(), WebBrowser_get_TopLevelContainer(), WebBrowser_get_Type(), WebBrowser_get_Visible(), WebBrowser_get_Width(), WebBrowser_GetIDsOfNames(), WebBrowser_GetProperty(), WebBrowser_GetTypeInfo(), WebBrowser_GetTypeInfoCount(), WebBrowser_GoBack(), WebBrowser_GoForward(), WebBrowser_GoHome(), WebBrowser_GoSearch(), WebBrowser_Invoke(), WebBrowser_Navigate(), WebBrowser_Navigate2(), WebBrowser_put_AddressBar(), WebBrowser_put_FullScreen(), WebBrowser_put_Height(), WebBrowser_put_Left(), WebBrowser_put_MenuBar(), WebBrowser_put_Offline(), WebBrowser_put_RegisterAsBrowser(), WebBrowser_put_RegisterAsDropTarget(), WebBrowser_put_Resizable(), WebBrowser_put_Silent(), WebBrowser_put_StatusBar(), WebBrowser_put_StatusText(), WebBrowser_put_TheaterMode(), WebBrowser_put_ToolBar(), WebBrowser_put_Top(), WebBrowser_put_Visible(), WebBrowser_put_Width(), WebBrowser_PutProperty(), WebBrowser_QueryInterface(), WebBrowser_QueryStatusWB(), WebBrowser_Quit(), WebBrowser_Refresh(), WebBrowser_Refresh2(), WebBrowser_Release(), WebBrowser_ShowBrowserBar(), and WebBrowser_Stop().

◆ WBServiceProvider_AddRef()

static ULONG WINAPI WBServiceProvider_AddRef ( IServiceProvider iface)
static

Definition at line 1142 of file webbrowser.c.

1143 {
1145  return IWebBrowser2_AddRef(&This->IWebBrowser2_iface);
1146 }
static WebBrowser * impl_from_IServiceProvider(IServiceProvider *iface)
Definition: webbrowser.c:1130

◆ WBServiceProvider_QueryInterface()

static HRESULT WINAPI WBServiceProvider_QueryInterface ( IServiceProvider iface,
REFIID  riid,
LPVOID ppv 
)
static

Definition at line 1135 of file webbrowser.c.

1137 {
1139  return IWebBrowser2_QueryInterface(&This->IWebBrowser2_iface, riid, ppv);
1140 }
REFIID riid
Definition: precomp.h:44
static WebBrowser * impl_from_IServiceProvider(IServiceProvider *iface)
Definition: webbrowser.c:1130
REFIID LPVOID * ppv
Definition: atlbase.h:39

◆ WBServiceProvider_QueryService()

static HRESULT STDMETHODCALLTYPE WBServiceProvider_QueryService ( IServiceProvider iface,
REFGUID  guidService,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1154 of file webbrowser.c.

1156 {
1158 
1159  if(IsEqualGUID(&SID_SHTMLWindow, riid)) {
1160  TRACE("(%p)->(SID_SHTMLWindow)\n", This);
1161  return IHTMLWindow2_QueryInterface(&This->doc_host.html_window.IHTMLWindow2_iface, riid, ppv);
1162  }
1163 
1164  if(IsEqualGUID(&IID_IBrowserService2, riid)) {
1165  TRACE("(%p)->(IID_IBrowserService2 return E_FAIL)\n", This);
1166  *ppv = NULL;
1167  return E_FAIL;
1168  }
1169 
1170  FIXME("(%p)->(%s, %s %p)\n", This, debugstr_guid(guidService), debugstr_guid(riid), ppv);
1171  *ppv = NULL;
1172  return E_NOINTERFACE;
1173 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
static WebBrowser * impl_from_IServiceProvider(IServiceProvider *iface)
Definition: webbrowser.c:1130
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define E_FAIL
Definition: ddrawi.h:102
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ WBServiceProvider_Release()

static ULONG WINAPI WBServiceProvider_Release ( IServiceProvider iface)
static

Definition at line 1148 of file webbrowser.c.

1149 {
1151  return IWebBrowser2_Release(&This->IWebBrowser2_iface);
1152 }
static WebBrowser * impl_from_IServiceProvider(IServiceProvider *iface)
Definition: webbrowser.c:1130

◆ WebBrowser_AddRef()

static ULONG WINAPI WebBrowser_AddRef ( IWebBrowser2 *  iface)
static

Definition at line 154 of file webbrowser.c.

155 {
158  TRACE("(%p) ref=%d\n", This, ref);
159  return ref;
160 }
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_addref()

static ULONG WebBrowser_addref ( DocHost iface)
static

Definition at line 1188 of file webbrowser.c.

1189 {
1190  WebBrowser *This = impl_from_DocHost(iface);
1191  return IWebBrowser2_AddRef(&This->IWebBrowser2_iface);
1192 }
static WebBrowser * impl_from_DocHost(DocHost *iface)
Definition: webbrowser.c:1183

◆ WebBrowser_ClientToWindow()

static HRESULT WINAPI WebBrowser_ClientToWindow ( IWebBrowser2 *  iface,
int pcx,
int pcy 
)
static

Definition at line 539 of file webbrowser.c.

540 {
542  FIXME("(%p)->(%p %p)\n", This, pcx, pcy);
543  return E_NOTIMPL;
544 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_Create()

HRESULT WINAPI WebBrowser_Create ( IClassFactory iface,
IUnknown pOuter,
REFIID  riid,
void **  ppv 
)

Definition at line 1269 of file webbrowser.c.

1270 {
1271  return create_webbrowser(2, pOuter, riid, ppv);
1272 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HRESULT create_webbrowser(int version, IUnknown *outer, REFIID riid, void **ppv)
Definition: webbrowser.c:1227

◆ WebBrowser_ExecWB()

static HRESULT WINAPI WebBrowser_ExecWB ( IWebBrowser2 *  iface,
OLECMDID  cmdID,
OLECMDEXECOPT  cmdexecopt,
VARIANT pvaIn,
VARIANT pvaOut 
)
static

Definition at line 833 of file webbrowser.c.

835 {
838  HRESULT hres;
839 
840  TRACE("(%p)->(%d %d %s %p)\n", This, cmdID, cmdexecopt, debugstr_variant(pvaIn), pvaOut);
841 
842  if(This->container)
843  {
844  hres = IOleContainer_QueryInterface(This->container, &IID_IOleCommandTarget, (LPVOID*)&target);
845  if(FAILED(hres))
846  target = NULL;
847  }
848  if(!target && This->doc_host.document)
849  {
850  hres = IUnknown_QueryInterface(This->doc_host.document, &IID_IOleCommandTarget, (LPVOID*)&target);
851  if(FAILED(hres))
852  target = NULL;
853  }
854 
855  if(!target)
856  return E_UNEXPECTED;
857 
858  hres = IOleCommandTarget_Exec(target, NULL, cmdID, cmdexecopt, pvaIn, pvaOut);
859  IOleCommandTarget_Release(target);
860 
861  return hres;
862 }
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_UNEXPECTED
Definition: winerror.h:2456
GLenum target
Definition: glext.h:7315
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_AddressBar()

static HRESULT WINAPI WebBrowser_get_AddressBar ( IWebBrowser2 *  iface,
VARIANT_BOOL Value 
)
static

Definition at line 997 of file webbrowser.c.

998 {
1000 
1001  TRACE("(%p)->(%p)\n", This, Value);
1002 
1003  *Value = This->address_bar;
1004  return S_OK;
1005 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Application()

static HRESULT WINAPI WebBrowser_get_Application ( IWebBrowser2 *  iface,
IDispatch **  ppDisp 
)
static

Definition at line 321 of file webbrowser.c.

322 {
324 
325  TRACE("(%p)->(%p)\n", This, ppDisp);
326 
327  if(!ppDisp)
328  return E_POINTER;
329 
330  *ppDisp = (IDispatch*)&This->IWebBrowser2_iface;
331  IDispatch_AddRef(*ppDisp);
332  return S_OK;
333 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31
#define E_POINTER
Definition: winerror.h:2365

◆ WebBrowser_get_Busy()

static HRESULT WINAPI WebBrowser_get_Busy ( IWebBrowser2 *  iface,
VARIANT_BOOL pBool 
)
static

Definition at line 519 of file webbrowser.c.

520 {
522 
523  TRACE("(%p)->(%p)\n", This, pBool);
524 
525  *pBool = This->doc_host.busy;
526  return S_OK;
527 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Container()

static HRESULT WINAPI WebBrowser_get_Container ( IWebBrowser2 *  iface,
IDispatch **  ppDisp 
)
static

Definition at line 342 of file webbrowser.c.

343 {
345  FIXME("(%p)->(%p)\n", This, ppDisp);
346  return E_NOTIMPL;
347 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Document()

static HRESULT WINAPI WebBrowser_get_Document ( IWebBrowser2 *  iface,
IDispatch **  ppDisp 
)
static

Definition at line 349 of file webbrowser.c.

350 {
352  IDispatch *disp = NULL;
353 
354  TRACE("(%p)->(%p)\n", This, ppDisp);
355 
356  if(This->doc_host.document) {
357  HRESULT hres;
358 
359  hres = IUnknown_QueryInterface(This->doc_host.document, &IID_IDispatch, (void**)&disp);
360  if(SUCCEEDED(hres)) {
362 
363  /* Some broken apps cast returned IDispatch to IHTMLDocument2
364  * without QueryInterface call */
365  hres = IDispatch_QueryInterface(disp, &IID_IHTMLDocument2, (void**)&html_doc);
366  if(SUCCEEDED(hres)) {
367  IDispatch_Release(disp);
368  disp = html_doc;
369  }
370  }
371  }
372 
373  *ppDisp = disp;
374  return S_OK;
375 }
disp
Definition: i386-dis.c:3181
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
const GUID IID_IDispatch
IHTMLDocument2 * html_doc
Definition: xmlview.c:53
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ WebBrowser_get_FullName()

static HRESULT WINAPI WebBrowser_get_FullName ( IWebBrowser2 *  iface,
BSTR FullName 
)
static

Definition at line 584 of file webbrowser.c.

585 {
587  FIXME("(%p)->(%p)\n", This, FullName);
588  return E_NOTIMPL;
589 }
#define FIXME(fmt,...)
Definition: debug.h:110
_In_ PSTRING FullName
Definition: rtlfuncs.h:1649
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_FullScreen()

static HRESULT WINAPI WebBrowser_get_FullScreen ( IWebBrowser2 *  iface,
VARIANT_BOOL pbFullScreen 
)
static

Definition at line 729 of file webbrowser.c.

730 {
732 
733  TRACE("(%p)->(%p)\n", This, pbFullScreen);
734 
735  *pbFullScreen = This->full_screen;
736  return S_OK;
737 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Height()

static HRESULT WINAPI WebBrowser_get_Height ( IWebBrowser2 *  iface,
LONG pl 
)
static

Definition at line 475 of file webbrowser.c.

476 {
478 
479  TRACE("(%p)->(%p)\n", This, pl);
480 
481  *pl = This->pos_rect.bottom - This->pos_rect.top;
482  return S_OK;
483 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_HWND()

static HRESULT WINAPI WebBrowser_get_HWND ( IWebBrowser2 *  iface,
SHANDLE_PTR pHWND 
)
static

Definition at line 573 of file webbrowser.c.

574 {
576 
577  TRACE("(%p)->(%p)\n", This, pHWND);
578 
579  /* WebBrowser control never has a frame window (in opposition to InternetExplorer) */
580  *pHWND = 0;
581  return E_FAIL;
582 }
#define E_FAIL
Definition: ddrawi.h:102
#define TRACE(s)
Definition: solgame.cpp:4
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Left()

static HRESULT WINAPI WebBrowser_get_Left ( IWebBrowser2 *  iface,
LONG pl 
)
static

Definition at line 391 of file webbrowser.c.

392 {
394 
395  TRACE("(%p)->(%p)\n", This, pl);
396 
397  *pl = This->pos_rect.left;
398  return S_OK;
399 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_LocationName()

static HRESULT WINAPI WebBrowser_get_LocationName ( IWebBrowser2 *  iface,
BSTR LocationName 
)
static

Definition at line 503 of file webbrowser.c.

504 {
506  FIXME("(%p)->(%p)\n", This, LocationName);
507  return E_NOTIMPL;
508 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_LocationURL()

static HRESULT WINAPI WebBrowser_get_LocationURL ( IWebBrowser2 *  iface,
BSTR LocationURL 
)
static

Definition at line 510 of file webbrowser.c.

511 {
513 
514  TRACE("(%p)->(%p)\n", This, LocationURL);
515 
516  return get_location_url(&This->doc_host, LocationURL);
517 }
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT get_location_url(DocHost *, BSTR *) DECLSPEC_HIDDEN
Definition: navigate.c:1142
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_MenuBar()

static HRESULT WINAPI WebBrowser_get_MenuBar ( IWebBrowser2 *  iface,
VARIANT_BOOL Value 
)
static

Definition at line 699 of file webbrowser.c.

700 {
702 
703  TRACE("(%p)->(%p)\n", This, Value);
704 
705  *Value = This->menu_bar;
706  return S_OK;
707 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Name()

static HRESULT WINAPI WebBrowser_get_Name ( IWebBrowser2 *  iface,
BSTR Name 
)
static

Definition at line 560 of file webbrowser.c.

561 {
562  static const WCHAR sName[] = {'M','i','c','r','o','s','o','f','t',' ','W','e','b',
563  ' ','B','r','o','w','s','e','r',' ','C','o','n','t','r','o','l',0};
565 
566  TRACE("(%p)->(%p)\n", This, Name);
567 
568  *Name = SysAllocString(sName);
569 
570  return S_OK;
571 }
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:241
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Offline()

static HRESULT WINAPI WebBrowser_get_Offline ( IWebBrowser2 *  iface,
VARIANT_BOOL pbOffline 
)
static

Definition at line 883 of file webbrowser.c.

884 {
886 
887  TRACE("(%p)->(%p)\n", This, pbOffline);
888 
889  *pbOffline = This->doc_host.offline;
890  return S_OK;
891 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Parent()

static HRESULT WINAPI WebBrowser_get_Parent ( IWebBrowser2 *  iface,
IDispatch **  ppDisp 
)
static

Definition at line 335 of file webbrowser.c.

336 {
338  FIXME("(%p)->(%p)\n", This, ppDisp);
339  return E_NOTIMPL;
340 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Path()

static HRESULT WINAPI WebBrowser_get_Path ( IWebBrowser2 *  iface,
BSTR Path 
)
static

Definition at line 591 of file webbrowser.c.

592 {
594  FIXME("(%p)->(%p)\n", This, Path);
595  return E_NOTIMPL;
596 }
#define FIXME(fmt,...)
Definition: debug.h:110
PRTL_UNICODE_STRING_BUFFER Path
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_ReadyState()

static HRESULT WINAPI WebBrowser_get_ReadyState ( IWebBrowser2 *  iface,
READYSTATE *  lpReadyState 
)
static

Definition at line 873 of file webbrowser.c.

874 {
876 
877  TRACE("(%p)->(%p)\n", This, lpReadyState);
878 
879  *lpReadyState = This->doc_host.ready_state;
880  return S_OK;
881 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_RegisterAsBrowser()

static HRESULT WINAPI WebBrowser_get_RegisterAsBrowser ( IWebBrowser2 *  iface,
VARIANT_BOOL pbRegister 
)
static

Definition at line 923 of file webbrowser.c.

925 {
927 
928  FIXME("(%p)->(%p)\n", This, pbRegister);
929 
930  *pbRegister = This->register_browser;
931  return S_OK;
932 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_RegisterAsDropTarget()

static HRESULT WINAPI WebBrowser_get_RegisterAsDropTarget ( IWebBrowser2 *  iface,
VARIANT_BOOL pbRegister 
)
static

Definition at line 945 of file webbrowser.c.

947 {
949 
950  FIXME("(%p)->(%p)\n", This, pbRegister);
951 
952  if(!pbRegister)
953  return E_INVALIDARG;
954 
955  *pbRegister=0;
956  return S_OK;
957 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_INVALIDARG
Definition: ddrawi.h:101
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Resizable()

static HRESULT WINAPI WebBrowser_get_Resizable ( IWebBrowser2 *  iface,
VARIANT_BOOL Value 
)
static

Definition at line 1027 of file webbrowser.c.

1028 {
1030 
1031  TRACE("(%p)->(%p)\n", This, Value);
1032 
1033  /* It's InternetExplorer object's method. We have nothing to do here. */
1034  return E_NOTIMPL;
1035 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
#define TRACE(s)
Definition: solgame.cpp:4
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Silent()

static HRESULT WINAPI WebBrowser_get_Silent ( IWebBrowser2 *  iface,
VARIANT_BOOL pbSilent 
)
static

Definition at line 903 of file webbrowser.c.

904 {
906 
907  TRACE("(%p)->(%p)\n", This, pbSilent);
908 
909  *pbSilent = This->doc_host.silent;
910  return S_OK;
911 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_StatusBar()

static HRESULT WINAPI WebBrowser_get_StatusBar ( IWebBrowser2 *  iface,
VARIANT_BOOL pBool 
)
static

Definition at line 625 of file webbrowser.c.

626 {
628 
629  TRACE("(%p)->(%p)\n", This, pBool);
630 
631  *pBool = This->status_bar;
632  return S_OK;
633 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_StatusText()

static HRESULT WINAPI WebBrowser_get_StatusText ( IWebBrowser2 *  iface,
BSTR StatusText 
)
static

Definition at line 655 of file webbrowser.c.

656 {
658  FIXME("(%p)->(%p)\n", This, StatusText);
659  return E_NOTIMPL;
660 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_TheaterMode()

static HRESULT WINAPI WebBrowser_get_TheaterMode ( IWebBrowser2 *  iface,
VARIANT_BOOL pbRegister 
)
static

Definition at line 967 of file webbrowser.c.

968 {
970 
971  TRACE("(%p)->(%p)\n", This, pbRegister);
972 
973  *pbRegister = This->theater_mode;
974  return S_OK;
975 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_ToolBar()

static HRESULT WINAPI WebBrowser_get_ToolBar ( IWebBrowser2 *  iface,
int Value 
)
static

Definition at line 669 of file webbrowser.c.

670 {
672 
673  TRACE("(%p)->(%p)\n", This, Value);
674 
675  *Value = This->tool_bar;
676  return S_OK;
677 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Top()

static HRESULT WINAPI WebBrowser_get_Top ( IWebBrowser2 *  iface,
LONG pl 
)
static

Definition at line 419 of file webbrowser.c.

420 {
422 
423  TRACE("(%p)->(%p)\n", This, pl);
424 
425  *pl = This->pos_rect.top;
426  return S_OK;
427 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_TopLevelContainer()

static HRESULT WINAPI WebBrowser_get_TopLevelContainer ( IWebBrowser2 *  iface,
VARIANT_BOOL pBool 
)
static

Definition at line 377 of file webbrowser.c.

378 {
380  FIXME("(%p)->(%p)\n", This, pBool);
381  return E_NOTIMPL;
382 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Type()

static HRESULT WINAPI WebBrowser_get_Type ( IWebBrowser2 *  iface,
BSTR Type 
)
static

Definition at line 384 of file webbrowser.c.

385 {
387  FIXME("(%p)->(%p)\n", This, Type);
388  return E_NOTIMPL;
389 }
Type
Definition: Type.h:6
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Visible()

static HRESULT WINAPI WebBrowser_get_Visible ( IWebBrowser2 *  iface,
VARIANT_BOOL pBool 
)
static

Definition at line 598 of file webbrowser.c.

599 {
601 
602  TRACE("(%p)->(%p)\n", This, pBool);
603 
604  *pBool = This->visible;
605  return S_OK;
606 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_get_Width()

static HRESULT WINAPI WebBrowser_get_Width ( IWebBrowser2 *  iface,
LONG pl 
)
static

Definition at line 447 of file webbrowser.c.

448 {
450 
451  TRACE("(%p)->(%p)\n", This, pl);
452 
453  *pl = This->pos_rect.right - This->pos_rect.left;
454  return S_OK;
455 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_GetIDsOfNames()

static HRESULT WINAPI WebBrowser_GetIDsOfNames ( IWebBrowser2 *  iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 216 of file webbrowser.c.

219 {
222  HRESULT hres;
223 
224  TRACE("(%p)->(%s %p %d %d %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
225  lcid, rgDispId);
226 
227  hres = get_typeinfo(IWebBrowser2_tid, &typeinfo);
228  if(FAILED(hres))
229  return hres;
230 
231  return ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
232 }
REFIID riid
Definition: precomp.h:44
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static ITypeInfo * typeinfo[last_tid]
Definition: apps.c:109
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_GetProperty()

static HRESULT WINAPI WebBrowser_GetProperty ( IWebBrowser2 *  iface,
BSTR  szProperty,
VARIANT pvtValue 
)
static

Definition at line 553 of file webbrowser.c.

554 {
556  FIXME("(%p)->(%s %s)\n", This, debugstr_w(szProperty), debugstr_variant(pvtValue));
557  return E_NOTIMPL;
558 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_NOTIMPL
Definition: ddrawi.h:99
static const WCHAR szProperty[]
Definition: msipriv.h:1198
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_GetTypeInfo()

static HRESULT WINAPI WebBrowser_GetTypeInfo ( IWebBrowser2 *  iface,
UINT  iTInfo,
LCID  lcid,
LPTYPEINFO *  ppTInfo 
)
static

Definition at line 198 of file webbrowser.c.

200 {
203  HRESULT hres;
204 
205  TRACE("(%p)->(%d %d %p)\n", This, iTInfo, lcid, ppTInfo);
206 
207  hres = get_typeinfo(IWebBrowser2_tid, &typeinfo);
208  if(FAILED(hres))
209  return hres;
210 
211  ITypeInfo_AddRef(typeinfo);
212  *ppTInfo = typeinfo;
213  return S_OK;
214 }
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static ITypeInfo * typeinfo[last_tid]
Definition: apps.c:109
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_GetTypeInfoCount()

static HRESULT WINAPI WebBrowser_GetTypeInfoCount ( IWebBrowser2 *  iface,
UINT pctinfo 
)
static

Definition at line 188 of file webbrowser.c.

189 {
191 
192  TRACE("(%p)->(%p)\n", This, pctinfo);
193 
194  *pctinfo = 1;
195  return S_OK;
196 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_GoBack()

static HRESULT WINAPI WebBrowser_GoBack ( IWebBrowser2 *  iface)
static

Definition at line 255 of file webbrowser.c.

256 {
258  TRACE("(%p)\n", This);
259  return go_back(&This->doc_host);
260 }
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT go_back(DocHost *) DECLSPEC_HIDDEN
Definition: navigate.c:1122
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_GoForward()

static HRESULT WINAPI WebBrowser_GoForward ( IWebBrowser2 *  iface)
static

Definition at line 262 of file webbrowser.c.

263 {
265  TRACE("(%p)\n", This);
266  return go_forward(&This->doc_host);
267 }
HRESULT go_forward(DocHost *) DECLSPEC_HIDDEN
Definition: navigate.c:1132
#define TRACE(s)
Definition: solgame.cpp:4
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_GoHome()

static HRESULT WINAPI WebBrowser_GoHome ( IWebBrowser2 *  iface)
static

Definition at line 269 of file webbrowser.c.

270 {
272  TRACE("(%p)\n", This);
273  return go_home(&This->doc_host);
274 }
HRESULT go_home(DocHost *) DECLSPEC_HIDDEN
Definition: navigate.c:1065
#define TRACE(s)
Definition: solgame.cpp:4
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_GoSearch()

static HRESULT WINAPI WebBrowser_GoSearch ( IWebBrowser2 *  iface)
static

Definition at line 276 of file webbrowser.c.

277 {
279  FIXME("(%p)\n", This);
280  return E_NOTIMPL;
281 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_Invoke()

static HRESULT WINAPI WebBrowser_Invoke ( IWebBrowser2 *  iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExepInfo,
UINT puArgErr 
)
static

Definition at line 234 of file webbrowser.c.

238 {
241  HRESULT hres;
242 
243  TRACE("(%p)->(%d %s %d %08x %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
244  lcid, wFlags, pDispParams, pVarResult, pExepInfo, puArgErr);
245 
246  hres = get_typeinfo(IWebBrowser2_tid, &typeinfo);
247  if(FAILED(hres))
248  return hres;
249 
250  return ITypeInfo_Invoke(typeinfo, &This->IWebBrowser2_iface, dispIdMember, wFlags, pDispParams,
251  pVarResult, pExepInfo, puArgErr);
252 }
REFIID riid
Definition: precomp.h:44
HRESULT get_typeinfo(enum type_id tid, ITypeInfo **ret)
Definition: apps.c:124
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
static ITypeInfo * typeinfo[last_tid]
Definition: apps.c:109
_In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon.h:519
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_Navigate()

static HRESULT WINAPI WebBrowser_Navigate ( IWebBrowser2 *  iface,
BSTR  szUrl,
VARIANT Flags,
VARIANT TargetFrameName,
VARIANT PostData,
VARIANT Headers 
)
static

Definition at line 283 of file webbrowser.c.

286 {
288 
289  TRACE("(%p)->(%s %s %s %s %s)\n", This, debugstr_w(szUrl), debugstr_variant(Flags),
290  debugstr_variant(TargetFrameName), debugstr_variant(PostData),
291  debugstr_variant(Headers));
292 
293  return navigate_url(&This->doc_host, szUrl, Flags, TargetFrameName, PostData, Headers);
294 }
static HRESULT navigate_url(HHInfo *info, LPCWSTR surl)
Definition: help.c:189
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_Navigate2()

static HRESULT WINAPI WebBrowser_Navigate2 ( IWebBrowser2 *  iface,
VARIANT URL,
VARIANT Flags,
VARIANT TargetFrameName,
VARIANT PostData,
VARIANT Headers 
)
static

Definition at line 759 of file webbrowser.c.

761 {
763  LPCWSTR url;
764 
765  TRACE("(%p)->(%s %s %s %s %s)\n", This, debugstr_variant(URL), debugstr_variant(Flags),
766  debugstr_variant(TargetFrameName), debugstr_variant(PostData), debugstr_variant(Headers));
767 
768  if(!This->client)
769  return E_FAIL;
770 
771  if(!URL)
772  return S_OK;
773 
774  switch (V_VT(URL))
775  {
776  case VT_BSTR:
777  url = V_BSTR(URL);
778  break;
779  case VT_BSTR|VT_BYREF:
780  url = *V_BSTRREF(URL);
781  break;
782  default:
783  FIXME("Unsupported V_VT(URL) %d\n", V_VT(URL));
784  return E_INVALIDARG;
785  }
786 
787  return navigate_url(&This->doc_host, url, Flags, TargetFrameName, PostData, Headers);
788 }
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
static HRESULT navigate_url(HHInfo *info, LPCWSTR surl)
Definition: help.c:189
#define E_FAIL
Definition: ddrawi.h:102
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_INVALIDARG
Definition: ddrawi.h:101
#define TRACE(s)
Definition: solgame.cpp:4
static const WCHAR url[]
Definition: encode.c:1432
#define V_VT(A)
Definition: oleauto.h:211
#define V_BSTR(A)
Definition: oleauto.h:226
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31
#define V_BSTRREF(A)
Definition: oleauto.h:227

◆ WebBrowser_put_AddressBar()

static HRESULT WINAPI WebBrowser_put_AddressBar ( IWebBrowser2 *  iface,
VARIANT_BOOL  Value 
)
static

Definition at line 1007 of file webbrowser.c.

1008 {
1010  VARIANTARG arg;
1011  DISPPARAMS dispparams = {&arg, NULL, 1, 0};
1012 
1013  TRACE("(%p)->(%x)\n", This, Value);
1014 
1015  This->address_bar = Value ? VARIANT_TRUE : VARIANT_FALSE;
1016 
1017  /* In opposition to InternetExplorer, all we should do here is
1018  * inform the embedder about the address bar change. */
1019 
1020  V_VT(&arg) = VT_BOOL;
1021  V_BOOL(&arg) = Value;
1022  call_sink(This->doc_host.cps.wbe2, DISPID_ONADDRESSBAR, &dispparams);
1023 
1024  return S_OK;
1025 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
void * arg
Definition: msvc.h:12
#define DISPID_ONADDRESSBAR
Definition: webchild.h:63
void call_sink(ConnectionPoint *This, DISPID dispid, DISPPARAMS *dispparams)
Definition: events.c:391
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define V_BOOL(A)
Definition: oleauto.h:224
#define V_VT(A)
Definition: oleauto.h:211
#define S_OK
Definition: intsafe.h:59
struct stdole::DISPPARAMS DISPPARAMS
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_FullScreen()

static HRESULT WINAPI WebBrowser_put_FullScreen ( IWebBrowser2 *  iface,
VARIANT_BOOL  bFullScreen 
)
static

Definition at line 739 of file webbrowser.c.

740 {
742  VARIANTARG arg;
743  DISPPARAMS dispparams = {&arg, NULL, 1, 0};
744 
745  /* In opposition to InternetExplorer, all we should do here is
746  * inform the embedder about the fullscreen change. */
747 
748  TRACE("(%p)->(%x)\n", This, bFullScreen);
749 
750  This->full_screen = bFullScreen ? VARIANT_TRUE : VARIANT_FALSE;
751 
752  V_VT(&arg) = VT_BOOL;
753  V_BOOL(&arg) = bFullScreen;
754  call_sink(This->doc_host.cps.wbe2, DISPID_ONFULLSCREEN, &dispparams);
755 
756  return S_OK;
757 }
void * arg
Definition: msvc.h:12
void call_sink(ConnectionPoint *This, DISPID dispid, DISPPARAMS *dispparams)
Definition: events.c:391
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define V_BOOL(A)
Definition: oleauto.h:224
#define V_VT(A)
Definition: oleauto.h:211
#define S_OK
Definition: intsafe.h:59
#define DISPID_ONFULLSCREEN
Definition: webchild.h:60
struct stdole::DISPPARAMS DISPPARAMS
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_Height()

static HRESULT WINAPI WebBrowser_put_Height ( IWebBrowser2 *  iface,
LONG  Height 
)
static

Definition at line 485 of file webbrowser.c.

486 {
488  RECT rect;
489 
490  TRACE("(%p)->(%d)\n", This, Height);
491 
492  if(!This->inplace)
493  return E_UNEXPECTED;
494 
495  rect = This->pos_rect;
496  rect.bottom = rect.top+Height;
497 
498  /* We don't really change the window size here.
499  * We just notify the embedder that he should do so. */
500  return IOleInPlaceSiteEx_OnPosRectChange(This->inplace, &rect);
501 }
& rect
Definition: startmenu.cpp:1413
#define TRACE(s)
Definition: solgame.cpp:4
#define E_UNEXPECTED
Definition: winerror.h:2456
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_Left()

static HRESULT WINAPI WebBrowser_put_Left ( IWebBrowser2 *  iface,
LONG  Left 
)
static

Definition at line 401 of file webbrowser.c.

402 {
404  RECT rect;
405 
406  TRACE("(%p)->(%d)\n", This, Left);
407 
408  if(!This->inplace)
409  return E_UNEXPECTED;
410 
411  rect = This->pos_rect;
412  rect.left = Left;
413 
414  /* We don't really change the window position here.
415  * We just notify the embedder that he should do so. */
416  return IOleInPlaceSiteEx_OnPosRectChange(This->inplace, &rect);
417 }
& rect
Definition: startmenu.cpp:1413
#define TRACE(s)
Definition: solgame.cpp:4
#define E_UNEXPECTED
Definition: winerror.h:2456
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_MenuBar()

static HRESULT WINAPI WebBrowser_put_MenuBar ( IWebBrowser2 *  iface,
VARIANT_BOOL  Value 
)
static

Definition at line 709 of file webbrowser.c.

710 {
712  VARIANTARG arg;
713  DISPPARAMS dispparams = {&arg, NULL, 1, 0};
714 
715  TRACE("(%p)->(%x)\n", This, Value);
716 
717  This->menu_bar = Value ? VARIANT_TRUE : VARIANT_FALSE;
718 
719  /* In opposition to InternetExplorer, all we should do here is
720  * inform the embedder about the menu bar change. */
721 
722  V_VT(&arg) = VT_BOOL;
723  V_BOOL(&arg) = Value;
724  call_sink(This->doc_host.cps.wbe2, DISPID_ONMENUBAR, &dispparams);
725 
726  return S_OK;
727 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
void * arg
Definition: msvc.h:12
void call_sink(ConnectionPoint *This, DISPID dispid, DISPPARAMS *dispparams)
Definition: events.c:391
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define V_BOOL(A)
Definition: oleauto.h:224
#define DISPID_ONMENUBAR
Definition: webchild.h:58
#define V_VT(A)
Definition: oleauto.h:211
#define S_OK
Definition: intsafe.h:59
struct stdole::DISPPARAMS DISPPARAMS
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_Offline()

static HRESULT WINAPI WebBrowser_put_Offline ( IWebBrowser2 *  iface,
VARIANT_BOOL  bOffline 
)
static

Definition at line 893 of file webbrowser.c.

894 {
896 
897  TRACE("(%p)->(%x)\n", This, bOffline);
898 
899  This->doc_host.offline = bOffline ? VARIANT_TRUE : VARIANT_FALSE;
900  return S_OK;
901 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_RegisterAsBrowser()

static HRESULT WINAPI WebBrowser_put_RegisterAsBrowser ( IWebBrowser2 *  iface,
VARIANT_BOOL  bRegister 
)
static

Definition at line 934 of file webbrowser.c.

936 {
938 
939  FIXME("(%p)->(%x)\n", This, bRegister);
940 
941  This->register_browser = bRegister ? VARIANT_TRUE : VARIANT_FALSE;
942  return S_OK;
943 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_RegisterAsDropTarget()

static HRESULT WINAPI WebBrowser_put_RegisterAsDropTarget ( IWebBrowser2 *  iface,
VARIANT_BOOL  bRegister 
)
static

Definition at line 959 of file webbrowser.c.

961 {
963  FIXME("(%p)->(%x)\n", This, bRegister);
964  return S_OK;
965 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_Resizable()

static HRESULT WINAPI WebBrowser_put_Resizable ( IWebBrowser2 *  iface,
VARIANT_BOOL  Value 
)
static

Definition at line 1037 of file webbrowser.c.

1038 {
1040  VARIANTARG arg;
1041  DISPPARAMS dispparams = {&arg, NULL, 1, 0};
1042 
1043  TRACE("(%p)->(%x)\n", This, Value);
1044 
1045  /* In opposition to InternetExplorer, all we should do here is
1046  * inform the embedder about the resizable change. */
1047 
1048  V_VT(&arg) = VT_BOOL;
1049  V_BOOL(&arg) = Value;
1050  call_sink(This->doc_host.cps.wbe2, DISPID_WINDOWSETRESIZABLE, &dispparams);
1051 
1052  return S_OK;
1053 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
void * arg
Definition: msvc.h:12
#define DISPID_WINDOWSETRESIZABLE
Definition: webchild.h:64
void call_sink(ConnectionPoint *This, DISPID dispid, DISPPARAMS *dispparams)
Definition: events.c:391
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define V_BOOL(A)
Definition: oleauto.h:224
#define V_VT(A)
Definition: oleauto.h:211
#define S_OK
Definition: intsafe.h:59
struct stdole::DISPPARAMS DISPPARAMS
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_Silent()

static HRESULT WINAPI WebBrowser_put_Silent ( IWebBrowser2 *  iface,
VARIANT_BOOL  bSilent 
)
static

Definition at line 913 of file webbrowser.c.

914 {
916 
917  TRACE("(%p)->(%x)\n", This, bSilent);
918 
919  This->doc_host.silent = bSilent ? VARIANT_TRUE : VARIANT_FALSE;
920  return S_OK;
921 }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_StatusBar()

static HRESULT WINAPI WebBrowser_put_StatusBar ( IWebBrowser2 *  iface,
VARIANT_BOOL  Value 
)
static

Definition at line 635 of file webbrowser.c.

636 {
638  VARIANTARG arg;
639  DISPPARAMS dispparams = {&arg, NULL, 1, 0};
640 
641  TRACE("(%p)->(%x)\n", This, Value);
642 
643  This->status_bar = Value ? VARIANT_TRUE : VARIANT_FALSE;
644 
645  /* In opposition to InternetExplorer, all we should do here is
646  * inform the embedder about the status bar change. */
647 
648  V_VT(&arg) = VT_BOOL;
649  V_BOOL(&arg) = Value;
650  call_sink(This->doc_host.cps.wbe2, DISPID_ONSTATUSBAR, &dispparams);
651 
652  return S_OK;
653 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
#define DISPID_ONSTATUSBAR
Definition: webchild.h:59
void * arg
Definition: msvc.h:12
void call_sink(ConnectionPoint *This, DISPID dispid, DISPPARAMS *dispparams)
Definition: events.c:391
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define V_BOOL(A)
Definition: oleauto.h:224
#define V_VT(A)
Definition: oleauto.h:211
#define S_OK
Definition: intsafe.h:59
struct stdole::DISPPARAMS DISPPARAMS
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_StatusText()

static HRESULT WINAPI WebBrowser_put_StatusText ( IWebBrowser2 *  iface,
BSTR  StatusText 
)
static

Definition at line 662 of file webbrowser.c.

663 {
665  FIXME("(%p)->(%s)\n", This, debugstr_w(StatusText));
666  return E_NOTIMPL;
667 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_TheaterMode()

static HRESULT WINAPI WebBrowser_put_TheaterMode ( IWebBrowser2 *  iface,
VARIANT_BOOL  bRegister 
)
static

Definition at line 977 of file webbrowser.c.

978 {
980  VARIANTARG arg;
981  DISPPARAMS dispparams = {&arg, NULL, 1, 0};
982 
983  TRACE("(%p)->(%x)\n", This, bRegister);
984 
985  This->theater_mode = bRegister ? VARIANT_TRUE : VARIANT_FALSE;
986 
987  /* In opposition to InternetExplorer, all we should do here is
988  * inform the embedder about the theater mode change. */
989 
990  V_VT(&arg) = VT_BOOL;
991  V_BOOL(&arg) = bRegister;
992  call_sink(This->doc_host.cps.wbe2, DISPID_ONTHEATERMODE, &dispparams);
993 
994  return S_OK;
995 }
void * arg
Definition: msvc.h:12
void call_sink(ConnectionPoint *This, DISPID dispid, DISPPARAMS *dispparams)
Definition: events.c:391
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define V_BOOL(A)
Definition: oleauto.h:224
#define V_VT(A)
Definition: oleauto.h:211
#define DISPID_ONTHEATERMODE
Definition: webchild.h:62
#define S_OK
Definition: intsafe.h:59
struct stdole::DISPPARAMS DISPPARAMS
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_ToolBar()

static HRESULT WINAPI WebBrowser_put_ToolBar ( IWebBrowser2 *  iface,
int  Value 
)
static

Definition at line 679 of file webbrowser.c.

680 {
682  VARIANTARG arg;
683  DISPPARAMS dispparams = {&arg, NULL, 1, 0};
684 
685  TRACE("(%p)->(%x)\n", This, Value);
686 
687  This->tool_bar = Value ? VARIANT_TRUE : VARIANT_FALSE;
688 
689  /* In opposition to InternetExplorer, all we should do here is
690  * inform the embedder about the tool bar change. */
691 
692  V_VT(&arg) = VT_BOOL;
693  V_BOOL(&arg) = This->tool_bar;
694  call_sink(This->doc_host.cps.wbe2, DISPID_ONTOOLBAR, &dispparams);
695 
696  return S_OK;
697 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
void * arg
Definition: msvc.h:12
void call_sink(ConnectionPoint *This, DISPID dispid, DISPPARAMS *dispparams)
Definition: events.c:391
#define DISPID_ONTOOLBAR
Definition: webchild.h:57
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define V_BOOL(A)
Definition: oleauto.h:224
#define V_VT(A)
Definition: oleauto.h:211
#define S_OK
Definition: intsafe.h:59
struct stdole::DISPPARAMS DISPPARAMS
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_Top()

static HRESULT WINAPI WebBrowser_put_Top ( IWebBrowser2 *  iface,
LONG  Top 
)
static

Definition at line 429 of file webbrowser.c.

430 {
432  RECT rect;
433 
434  TRACE("(%p)->(%d)\n", This, Top);
435 
436  if(!This->inplace)
437  return E_UNEXPECTED;
438 
439  rect = This->pos_rect;
440  rect.top = Top;
441 
442  /* We don't really change the window position here.
443  * We just notify the embedder that he should do so. */
444  return IOleInPlaceSiteEx_OnPosRectChange(This->inplace, &rect);
445 }
& rect
Definition: startmenu.cpp:1413
#define TRACE(s)
Definition: solgame.cpp:4
#define E_UNEXPECTED
Definition: winerror.h:2456
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31
static LPHIST_ENTRY Top
Definition: history.c:53

◆ WebBrowser_put_Visible()

static HRESULT WINAPI WebBrowser_put_Visible ( IWebBrowser2 *  iface,
VARIANT_BOOL  Value 
)
static

Definition at line 608 of file webbrowser.c.

609 {
611  VARIANTARG arg;
612  DISPPARAMS dispparams = {&arg, NULL, 1, 0};
613 
614  TRACE("(%p)->(%x)\n", This, Value);
615 
616  This->visible = Value;
617 
618  V_VT(&arg) = VT_BOOL;
619  V_BOOL(&arg) = Value;
620  call_sink(This->doc_host.cps.wbe2, DISPID_ONVISIBLE, &dispparams);
621 
622  return S_OK;
623 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
#define DISPID_ONVISIBLE
Definition: webchild.h:56
void * arg
Definition: msvc.h:12
void call_sink(ConnectionPoint *This, DISPID dispid, DISPPARAMS *dispparams)
Definition: events.c:391
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
#define V_BOOL(A)
Definition: oleauto.h:224
#define V_VT(A)
Definition: oleauto.h:211
#define S_OK
Definition: intsafe.h:59
struct stdole::DISPPARAMS DISPPARAMS
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_put_Width()

static HRESULT WINAPI WebBrowser_put_Width ( IWebBrowser2 *  iface,
LONG  Width 
)
static

Definition at line 457 of file webbrowser.c.

458 {
460  RECT rect;
461 
462  TRACE("(%p)->(%d)\n", This, Width);
463 
464  if(!This->inplace)
465  return E_UNEXPECTED;
466 
467  rect = This->pos_rect;
468  rect.right = rect.left+Width;
469 
470  /* We don't really change the window size here.
471  * We just notify the embedder that he should do so. */
472  return IOleInPlaceSiteEx_OnPosRectChange(This->inplace, &rect);
473 }
& rect
Definition: startmenu.cpp:1413
#define TRACE(s)
Definition: solgame.cpp:4
#define E_UNEXPECTED
Definition: winerror.h:2456
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_PutProperty()

static HRESULT WINAPI WebBrowser_PutProperty ( IWebBrowser2 *  iface,
BSTR  szProperty,
VARIANT  vtValue 
)
static

Definition at line 546 of file webbrowser.c.

547 {
549  FIXME("(%p)->(%s %s)\n", This, debugstr_w(szProperty), debugstr_variant(&vtValue));
550  return E_NOTIMPL;
551 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_NOTIMPL
Definition: ddrawi.h:99
static const WCHAR szProperty[]
Definition: msipriv.h:1198
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_QueryInterface()

static HRESULT WINAPI WebBrowser_QueryInterface ( IWebBrowser2 *  iface,
REFIID  riid,
LPVOID ppv 
)
static

Definition at line 36 of file webbrowser.c.

37 {
39 
40  if (ppv == NULL)
41  return E_POINTER;
42  *ppv = NULL;
43 
45  TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
46  *ppv = &This->IWebBrowser2_iface;
47  }else if(IsEqualGUID(&IID_IDispatch, riid)) {
48  TRACE("(%p)->(IID_IDispatch %p)\n", This, ppv);
49  *ppv = &This->IWebBrowser2_iface;
50  }else if(IsEqualGUID(&IID_IWebBrowser, riid)) {
51  TRACE("(%p)->(IID_IWebBrowser %p)\n", This, ppv);
52  *ppv = &This->IWebBrowser2_iface;
53  }else if(IsEqualGUID(&IID_IWebBrowserApp, riid)) {
54  TRACE("(%p)->(IID_IWebBrowserApp %p)\n", This, ppv);
55  *ppv = &This->IWebBrowser2_iface;
56  }else if(IsEqualGUID(&IID_IWebBrowser2, riid)) {
57  TRACE("(%p)->(IID_IWebBrowser2 %p)\n", This, ppv);
58  *ppv = &This->IWebBrowser2_iface;
59  }else if(IsEqualGUID(&IID_IOleObject, riid)) {
60  TRACE("(%p)->(IID_IOleObject %p)\n", This, ppv);
61  *ppv = &This->IOleObject_iface;
62  }else if(IsEqualGUID(&IID_IOleWindow, riid)) {
63  TRACE("(%p)->(IID_IOleWindow %p)\n", This, ppv);
64  *ppv = &This->IOleInPlaceObject_iface;
65  }else if(IsEqualGUID (&IID_IOleInPlaceObject, riid)) {
66  TRACE("(%p)->(IID_IOleInPlaceObject %p)\n", This, ppv);
67  *ppv = &This->IOleInPlaceObject_iface;
68  }else if(IsEqualGUID(&IID_IOleControl, riid)) {
69  TRACE("(%p)->(IID_IOleControl %p)\n", This, ppv);
70  *ppv = &This->IOleControl_iface;
71  }else if(IsEqualGUID(&IID_IPersist, riid)) {
72  TRACE("(%p)->(IID_IPersist %p)\n", This, ppv);
73  *ppv = &This->IPersistStorage_iface;
74  }else if(IsEqualGUID(&IID_IPersistStorage, riid)) {
75  TRACE("(%p)->(IID_IPersistStorage %p)\n", This, ppv);
76  *ppv = &This->IPersistStorage_iface;
77  }else if(IsEqualGUID(&IID_IPersistMemory, riid)) {
78  TRACE("(%p)->(IID_IPersistStorage %p)\n", This, ppv);
79  *ppv = &This->IPersistMemory_iface;
81  TRACE("(%p)->(IID_IPersistStreamInit %p)\n", This, ppv);
82  *ppv = &This->IPersistStreamInit_iface;
84  TRACE("(%p)->(IID_IProvideClassInfo %p)\n", This, ppv);
85  *ppv = &This->IProvideClassInfo2_iface;
87  TRACE("(%p)->(IID_IProvideClassInfo2 %p)\n", This, ppv);
88  *ppv = &This->IProvideClassInfo2_iface;
90  TRACE("(%p)->(IID_IConnectionPointContainer %p)\n", This, ppv);
91  *ppv = &This->doc_host.cps.IConnectionPointContainer_iface;
92  }else if(IsEqualGUID(&IID_IViewObject, riid)) {
93  TRACE("(%p)->(IID_IViewObject %p)\n", This, ppv);
94  *ppv = &This->IViewObject2_iface;
95  }else if(IsEqualGUID(&IID_IViewObject2, riid)) {
96  TRACE("(%p)->(IID_IViewObject2 %p)\n", This, ppv);
97  *ppv = &This->IViewObject2_iface;
99  TRACE("(%p)->(IID_IOleInPlaceActiveObject %p)\n", This, ppv);
100  *ppv = &This->IOleInPlaceActiveObject_iface;
101  }else if(IsEqualGUID(&IID_IOleCommandTarget, riid)) {
102  TRACE("(%p)->(IID_IOleCommandTarget %p)\n", This, ppv);
103  *ppv = &This->IOleCommandTarget_iface;
104  }else if(IsEqualGUID(&IID_IServiceProvider, riid)) {
105  *ppv = &This->IServiceProvider_iface;
106  TRACE("(%p)->(IID_IServiceProvider %p)\n", This, ppv);
107  }else if(IsEqualGUID(&IID_IDataObject, riid)) {
108  *ppv = &This->IDataObject_iface;
109  TRACE("(%p)->(IID_IDataObject %p)\n", This, ppv);
110  }else if(IsEqualGUID(&IID_IQuickActivate, riid)) {
111  TRACE("(%p)->(IID_IQuickActivate %p) returning NULL\n", This, ppv);
112  return E_NOINTERFACE;
113  }else if(IsEqualGUID(&IID_IRunnableObject, riid)) {
114  TRACE("(%p)->(IID_IRunnableObject %p) returning NULL\n", This, ppv);
115  return E_NOINTERFACE;
117  TRACE("(%p)->(IID_IPerPropertyBrowsing %p) returning NULL\n", This, ppv);
118  return E_NOINTERFACE;
119  }else if(IsEqualGUID(&IID_IOleCache, riid)) {
120  TRACE("(%p)->(IID_IOleCache %p) returning NULL\n", This, ppv);
121  return E_NOINTERFACE;
122  }else if(IsEqualGUID(&IID_IOleInPlaceSite, riid)) {
123  TRACE("(%p)->(IID_IOleInPlaceSite %p) returning NULL\n", This, ppv);
124  return E_NOINTERFACE;
125  }else if(IsEqualGUID(&IID_IObjectWithSite, riid)) {
126  TRACE("(%p)->(IID_IObjectWithSite %p) returning NULL\n", This, ppv);
127  return E_NOINTERFACE;
128  }else if(IsEqualGUID(&IID_IViewObjectEx, riid)) {
129  TRACE("(%p)->(IID_IViewObjectEx %p) returning NULL\n", This, ppv);
130  return E_NOINTERFACE;
131  }else if(IsEqualGUID(&IID_IOleLink, riid)) {
132  TRACE("(%p)->(IID_IOleLink %p) returning NULL\n", This, ppv);
133  return E_NOINTERFACE;
134  }else if(IsEqualGUID(&IID_IMarshal, riid)) {
135  TRACE("(%p)->(IID_IMarshal %p) returning NULL\n", This, ppv);
136  return E_NOINTERFACE;
137  }else if(IsEqualGUID(&IID_IStdMarshalInfo, riid)) {
138  /* This is implemented since IE10 */
139  WARN("(%p)->(IID_IStdMarshalInfo %p) returning NULL\n", This, ppv);
140  return E_NOINTERFACE;
141  }else if(HlinkFrame_QI(&This->hlink_frame, riid, ppv)) {
142  return S_OK;
143  }
144 
145  if(*ppv) {
146  IUnknown_AddRef((IUnknown*)*ppv);
147  return S_OK;
148  }
149 
150  FIXME("(%p)->(%s %p) interface not supported\n", This, debugstr_guid(riid), ppv);
151  return E_NOINTERFACE;
152 }
const GUID IID_IOleLink
const GUID IID_IViewObject
#define E_NOINTERFACE
Definition: winerror.h:2364
BOOL HlinkFrame_QI(HlinkFrame *, REFIID, void **) DECLSPEC_HIDDEN
Definition: navigate.c:1666
const GUID IID_IPerPropertyBrowsing
REFIID riid
Definition: precomp.h:44
const GUID IID_IOleInPlaceSite
const GUID IID_IPersist
Definition: proxy.cpp:14
#define WARN(fmt,...)
Definition: debug.h:111
REFIID LPVOID * ppv
Definition: atlbase.h:39
const GUID IID_IConnectionPointContainer
const GUID IID_IDataObject
const GUID IID_IPersistStorage
const GUID IID_IProvideClassInfo
#define FIXME(fmt,...)
Definition: debug.h:110
const GUID IID_IPersistMemory
smooth NULL
Definition: ftsmooth.c:416
const GUID IID_IProvideClassInfo2
#define debugstr_guid
Definition: kernel32.h:35
const GUID IID_IOleInPlaceObject
const GUID IID_IOleObject
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
const IID IID_IObjectWithSite
const GUID IID_IDispatch
const GUID IID_IOleControl
const GUID IID_IPersistStreamInit
const GUID IID_IRunnableObject
#define S_OK
Definition: intsafe.h:59
const GUID IID_IViewObject2
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112
const GUID IID_IOleWindow
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31
#define E_POINTER
Definition: winerror.h:2365
const GUID IID_IOleCache
const GUID IID_IOleInPlaceActiveObject

◆ WebBrowser_QueryStatusWB()

static HRESULT WINAPI WebBrowser_QueryStatusWB ( IWebBrowser2 *  iface,
OLECMDID  cmdID,
OLECMDF *  pcmdf 
)
static

Definition at line 790 of file webbrowser.c.

791 {
794  OLECMD ole_command[1];
795  HRESULT hres;
796 
797  TRACE("(%p)->(%d %p)\n", This, cmdID, pcmdf);
798 
799  if (!pcmdf)
800  return E_POINTER;
801  ole_command[0].cmdID = cmdID;
802  ole_command[0].cmdf = *pcmdf;
803 
804  if (This->container)
805  {
806  hres = IOleContainer_QueryInterface(This->container, &IID_IOleCommandTarget, (LPVOID*)&target);
807  if(FAILED(hres))
808  target = NULL;
809  }
810  if (!target && This->doc_host.document)
811  {
812  hres = IUnknown_QueryInterface(This->doc_host.document, &IID_IOleCommandTarget, (LPVOID*)&target);
813  if(FAILED(hres))
814  target = NULL;
815  }
816 
817  if (!target)
818  return E_UNEXPECTED;
819 
820  hres = IOleCommandTarget_QueryStatus(target, NULL, 1, ole_command, NULL);
821  if (SUCCEEDED(hres))
822  *pcmdf = ole_command[0].cmdf;
823  if (hres == OLECMDERR_E_NOTSUPPORTED)
824  {
825  *pcmdf = 0;
826  hres = S_OK;
827  }
828  IOleCommandTarget_Release(target);
829 
830  return hres;
831 }
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
HRESULT hres
Definition: protocol.c:465
LONG HRESULT
Definition: typedefs.h:77
#define S_OK
Definition: intsafe.h:59
#define E_UNEXPECTED
Definition: winerror.h:2456
GLenum target
Definition: glext.h:7315
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31
#define E_POINTER
Definition: winerror.h:2365
#define SUCCEEDED(hr)
Definition: intsafe.h:57

◆ WebBrowser_Quit()

static HRESULT WINAPI WebBrowser_Quit ( IWebBrowser2 *  iface)
static

Definition at line 529 of file webbrowser.c.

530 {
532 
533  TRACE("(%p)\n", This);
534 
535  /* It's a InternetExplorer specific method, we have nothing to do here. */
536  return E_FAIL;
537 }
#define E_FAIL
Definition: ddrawi.h:102
#define TRACE(s)
Definition: solgame.cpp:4
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_Refresh()

static HRESULT WINAPI WebBrowser_Refresh ( IWebBrowser2 *  iface)
static

Definition at line 296 of file webbrowser.c.

297 {
299 
300  TRACE("(%p)\n", This);
301 
302  return refresh_document(&This->doc_host, NULL);
303 }
HRESULT refresh_document(DocHost *This, const VARIANT *level)
Definition: dochost.c:572
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_Refresh2()

static HRESULT WINAPI WebBrowser_Refresh2 ( IWebBrowser2 *  iface,
VARIANT Level 
)
static

Definition at line 305 of file webbrowser.c.

306 {
308 
309  TRACE("(%p)->(%s)\n", This, debugstr_variant(Level));
310 
311  return refresh_document(&This->doc_host, Level);
312 }
HRESULT refresh_document(DocHost *This, const VARIANT *level)
Definition: dochost.c:572
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:55
#define TRACE(s)
Definition: solgame.cpp:4
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_Release()

static ULONG WINAPI WebBrowser_Release ( IWebBrowser2 *  iface)
static

Definition at line 162 of file webbrowser.c.

163 {
166 
167  TRACE("(%p) ref=%d\n", This, ref);
168 
169  if(!ref) {
170  if(This->sink)
171  IAdviseSink_Release(This->sink);
172 
173  if(This->doc_host.document)
174  IUnknown_Release(This->doc_host.document);
175 
176  DocHost_Release(&This->doc_host);
177 
179 
180  heap_free(This);
181  unlock_module();
182  }
183 
184  return ref;
185 }
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
void WebBrowser_OleObject_Destroy(WebBrowser *) DECLSPEC_HIDDEN
Definition: oleobject.c:1222
#define TRACE(s)
Definition: solgame.cpp:4
static void unlock_module(void)
Definition: ieframe.h:339
void DocHost_Release(DocHost *This)
Definition: dochost.c:1128
#define InterlockedDecrement
Definition: armddk.h:52
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ WebBrowser_release()

static ULONG WebBrowser_release ( DocHost iface)
static

Definition at line 1194 of file webbrowser.c.

1195 {
1196  WebBrowser *This = impl_from_DocHost(iface);
1197  return IWebBrowser2_Release(&This->IWebBrowser2_iface);
1198 }
static WebBrowser * impl_from_DocHost(DocHost *iface)
Definition: webbrowser.c:1183

◆ WebBrowser_ShowBrowserBar()

static HRESULT WINAPI WebBrowser_ShowBrowserBar ( IWebBrowser2 *  iface,
VARIANT pvaClsid,
VARIANT pvarShow,
VARIANT pvarSize 
)
static

Definition at line 864 of file webbrowser.c.

866 {
868  FIXME("(%p)->(%s %s %s)\n", This, debugstr_variant(pvaClsid), debugstr_variant(pvarShow),
869  debugstr_variant(pvarSize));
870  return E_NOTIMPL;
871 }
#define FIXME(fmt,...)
Definition: debug.h:110
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
#define E_NOTIMPL
Definition: ddrawi.h:99
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowser_Stop()

static HRESULT WINAPI WebBrowser_Stop ( IWebBrowser2 *  iface)
static

Definition at line 314 of file webbrowser.c.

315 {
317  FIXME("(%p)\n", This);
318  return S_OK;
319 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define S_OK
Definition: intsafe.h:59
static WebBrowser * impl_from_IWebBrowser2(IWebBrowser2 *iface)
Definition: webbrowser.c:31

◆ WebBrowserV1_Create()

HRESULT WINAPI WebBrowserV1_Create ( IClassFactory iface,
IUnknown pOuter,
REFIID  riid,
void **  ppv 
)

Definition at line 1264 of file webbrowser.c.

1265 {
1266  return create_webbrowser(1, pOuter, riid, ppv);
1267 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static HRESULT create_webbrowser(int version, IUnknown *outer, REFIID riid, void **ppv)
Definition: webbrowser.c:1227

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( ieframe  )

Variable Documentation

◆ DocHostContainerVtbl

const IDocHostContainerVtbl DocHostContainerVtbl
static
Initial value:
= {
}
static void DocHostContainer_on_command_state_change(DocHost *This, LONG command, BOOL enable)
Definition: webbrowser.c:1210
static HRESULT DocHostContainer_set_status_text(DocHost *This, const WCHAR *text)
Definition: webbrowser.c:1205
static void DocHostContainer_set_url(DocHost *This, const WCHAR *url)
Definition: webbrowser.c:1214
static void DocHostContainer_get_docobj_rect(DocHost *This, RECT *rc)
Definition: webbrowser.c:1200
static ULONG WebBrowser_addref(DocHost *iface)
Definition: webbrowser.c:1188
static ULONG WebBrowser_release(DocHost *iface)
Definition: webbrowser.c:1194

Definition at line 1218 of file webbrowser.c.

Referenced by create_webbrowser().

◆ ServiceProviderVtbl

const IServiceProviderVtbl ServiceProviderVtbl
static
Initial value:
=
{
}
static ULONG WINAPI WBServiceProvider_AddRef(IServiceProvider *iface)
Definition: webbrowser.c:1142
static ULONG WINAPI WBServiceProvider_Release(IServiceProvider *iface)
Definition: webbrowser.c:1148
static HRESULT WINAPI WBServiceProvider_QueryInterface(IServiceProvider *iface, REFIID riid, LPVOID *ppv)
Definition: webbrowser.c:1135
static HRESULT STDMETHODCALLTYPE WBServiceProvider_QueryService(IServiceProvider *iface, REFGUID guidService, REFIID riid, void **ppv)
Definition: webbrowser.c:1154

Definition at line 1175 of file webbrowser.c.

Referenced by create_webbrowser().

◆ WebBrowser2Vtbl

const IWebBrowser2Vtbl WebBrowser2Vtbl
static

Definition at line 1055 of file webbrowser.c.

Referenced by create_webbrowser().