Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a43adb40
Commit
a43adb40
authored
Nov 11, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Revert "Added Support for the IViewObjectEx" with tests.
parent
a76d8368
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
60 deletions
+19
-60
shdocvw.h
dlls/shdocvw/shdocvw.h
+1
-2
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+6
-0
view.c
dlls/shdocvw/view.c
+12
-55
webbrowser.c
dlls/shdocvw/webbrowser.c
+0
-3
No files found.
dlls/shdocvw/shdocvw.h
View file @
a43adb40
...
...
@@ -115,7 +115,7 @@ struct WebBrowser {
const
IPersistMemoryVtbl
*
lpPersistMemoryVtbl
;
const
IPersistStreamInitVtbl
*
lpPersistStreamInitVtbl
;
const
IProvideClassInfo2Vtbl
*
lpProvideClassInfoVtbl
;
const
IViewObject
ExVtbl
*
lpViewObjectVtbl
;
const
IViewObject
2Vtbl
*
lpViewObjectVtbl
;
const
IOleInPlaceActiveObjectVtbl
*
lpOleInPlaceActiveObjectVtbl
;
const
IOleCommandTargetVtbl
*
lpOleCommandTargetVtbl
;
const
IHlinkFrameVtbl
*
lpHlinkFrameVtbl
;
...
...
@@ -173,7 +173,6 @@ struct InternetExplorer {
#define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
#define VIEWOBJ(x) ((IViewObject*) &(x)->lpViewObjectVtbl);
#define VIEWOBJ2(x) ((IViewObject2*) &(x)->lpViewObjectVtbl);
#define VIEWOBJEX(x) ((IViewObjectEx*) &(x)->lpViewObjectVtbl);
#define ACTIVEOBJ(x) ((IOleInPlaceActiveObject*) &(x)->lpOleInPlaceActiveObjectVtbl)
#define OLECMD(x) ((IOleCommandTarget*) &(x)->lpOleCommandTargetVtbl)
#define HLINKFRAME(x) ((IHlinkFrame*) &(x)->lpHlinkFrameVtbl)
...
...
dlls/shdocvw/tests/webbrowser.c
View file @
a43adb40
...
...
@@ -1983,6 +1983,7 @@ static void test_QueryInterface(IUnknown *unk)
IOleInPlaceSite
*
inplace
=
(
void
*
)
0xdeadbeef
;
IOleCache
*
cache
=
(
void
*
)
0xdeadbeef
;
IObjectWithSite
*
site
=
(
void
*
)
0xdeadbeef
;
IViewObjectEx
*
viewex
=
(
void
*
)
0xdeadbeef
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IQuickActivate
,
(
void
**
)
&
qa
);
...
...
@@ -2008,6 +2009,11 @@ static void test_QueryInterface(IUnknown *unk)
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IObjectWithSite
,
(
void
**
)
&
site
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
site
==
NULL
,
"inplace=%p, ezpected NULL
\n
"
,
runnable
);
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IViewObjectEx
,
(
void
**
)
&
viewex
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
viewex
==
NULL
,
"viewex=%p, ezpected NULL
\n
"
,
runnable
);
}
static
void
test_WebBrowser
(
void
)
...
...
dlls/shdocvw/view.c
View file @
a43adb40
...
...
@@ -23,25 +23,25 @@ WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
#define VIEWOBJ_THIS(iface) DEFINE_THIS(WebBrowser, ViewObject, iface)
static
HRESULT
WINAPI
ViewObject_QueryInterface
(
IViewObject
Ex
*
iface
,
REFIID
riid
,
void
**
ppv
)
static
HRESULT
WINAPI
ViewObject_QueryInterface
(
IViewObject
2
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
return
IWebBrowser2_QueryInterface
(
WEBBROWSER
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
ViewObject_AddRef
(
IViewObject
Ex
*
iface
)
static
ULONG
WINAPI
ViewObject_AddRef
(
IViewObject
2
*
iface
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
return
IWebBrowser2_AddRef
(
WEBBROWSER
(
This
));
}
static
ULONG
WINAPI
ViewObject_Release
(
IViewObject
Ex
*
iface
)
static
ULONG
WINAPI
ViewObject_Release
(
IViewObject
2
*
iface
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
return
IWebBrowser2_Release
(
WEBBROWSER
(
This
));
}
static
HRESULT
WINAPI
ViewObject_Draw
(
IViewObject
Ex
*
iface
,
DWORD
dwDrawAspect
,
static
HRESULT
WINAPI
ViewObject_Draw
(
IViewObject
2
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
void
*
pvAspect
,
DVTARGETDEVICE
*
ptd
,
HDC
hdcTargetDev
,
HDC
hdcDraw
,
LPCRECTL
lprcBounds
,
LPCRECTL
lprcWBounds
,
BOOL
(
STDMETHODCALLTYPE
*
pfnContinue
)(
ULONG_PTR
),
...
...
@@ -54,7 +54,7 @@ static HRESULT WINAPI ViewObject_Draw(IViewObjectEx *iface, DWORD dwDrawAspect,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetColorSet
(
IViewObject
Ex
*
iface
,
DWORD
dwAspect
,
static
HRESULT
WINAPI
ViewObject_GetColorSet
(
IViewObject
2
*
iface
,
DWORD
dwAspect
,
LONG
lindex
,
void
*
pvAspect
,
DVTARGETDEVICE
*
ptd
,
HDC
hicTargetDev
,
LOGPALETTE
**
ppColorSet
)
{
...
...
@@ -64,7 +64,7 @@ static HRESULT WINAPI ViewObject_GetColorSet(IViewObjectEx *iface, DWORD dwAspec
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_Freeze
(
IViewObject
Ex
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
static
HRESULT
WINAPI
ViewObject_Freeze
(
IViewObject
2
*
iface
,
DWORD
dwDrawAspect
,
LONG
lindex
,
void
*
pvAspect
,
DWORD
*
pdwFreeze
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
...
...
@@ -72,14 +72,14 @@ static HRESULT WINAPI ViewObject_Freeze(IViewObjectEx *iface, DWORD dwDrawAspect
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_Unfreeze
(
IViewObject
Ex
*
iface
,
DWORD
dwFreeze
)
static
HRESULT
WINAPI
ViewObject_Unfreeze
(
IViewObject
2
*
iface
,
DWORD
dwFreeze
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%d)
\n
"
,
This
,
dwFreeze
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_SetAdvise
(
IViewObject
Ex
*
iface
,
DWORD
aspects
,
DWORD
advf
,
static
HRESULT
WINAPI
ViewObject_SetAdvise
(
IViewObject
2
*
iface
,
DWORD
aspects
,
DWORD
advf
,
IAdviseSink
*
pAdvSink
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
...
...
@@ -87,7 +87,7 @@ static HRESULT WINAPI ViewObject_SetAdvise(IViewObjectEx *iface, DWORD aspects,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetAdvise
(
IViewObject
Ex
*
iface
,
DWORD
*
pAspects
,
static
HRESULT
WINAPI
ViewObject_GetAdvise
(
IViewObject
2
*
iface
,
DWORD
*
pAspects
,
DWORD
*
pAdvf
,
IAdviseSink
**
ppAdvSink
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
...
...
@@ -95,7 +95,7 @@ static HRESULT WINAPI ViewObject_GetAdvise(IViewObjectEx *iface, DWORD *pAspects
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetExtent
(
IViewObject
Ex
*
iface
,
DWORD
dwAspect
,
LONG
lindex
,
static
HRESULT
WINAPI
ViewObject_GetExtent
(
IViewObject
2
*
iface
,
DWORD
dwAspect
,
LONG
lindex
,
DVTARGETDEVICE
*
ptd
,
LPSIZEL
lpsizel
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
...
...
@@ -103,45 +103,7 @@ static HRESULT WINAPI ViewObject_GetExtent(IViewObjectEx *iface, DWORD dwAspect,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetRect
(
IViewObjectEx
*
iface
,
DWORD
dwAspect
,
LPRECTL
pRect
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%d %p)
\n
"
,
This
,
dwAspect
,
pRect
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetViewStatus
(
IViewObjectEx
*
iface
,
DWORD
*
pdwStatus
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pdwStatus
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_QueryHitPoint
(
IViewObjectEx
*
iface
,
DWORD
dwAspect
,
LPCRECT
pRectBounds
,
POINT
ptlLoc
,
LONG
lCloseHint
,
DWORD
*
pHitResult
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%d %p %p %d %p)
\n
"
,
This
,
dwAspect
,
pRectBounds
,
pRectBounds
,
lCloseHint
,
pHitResult
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_QueryHitRect
(
IViewObjectEx
*
iface
,
DWORD
dwAspect
,
LPCRECT
pRectBounds
,
LPCRECT
pRectLoc
,
LONG
lCloseHint
,
DWORD
*
pHitResult
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%d %p %p %p %d %p)
\n
"
,
This
,
dwAspect
,
pRectBounds
,
pRectLoc
,
pRectBounds
,
lCloseHint
,
pHitResult
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ViewObject_GetNaturalExtent
(
IViewObjectEx
*
iface
,
DWORD
dwAspect
,
LONG
lindex
,
DVTARGETDEVICE
*
ptd
,
HDC
hicTargetDev
,
DVEXTENTINFO
*
pExtentInfo
,
LPSIZEL
pSizel
)
{
WebBrowser
*
This
=
VIEWOBJ_THIS
(
iface
);
FIXME
(
"(%p)->(%d %d %p %p %p)
\n
"
,
This
,
dwAspect
,
lindex
,
ptd
,
pExtentInfo
,
pSizel
);
return
E_NOTIMPL
;
}
static
const
IViewObjectExVtbl
ViewObjectVtbl
=
{
static
const
IViewObject2Vtbl
ViewObjectVtbl
=
{
ViewObject_QueryInterface
,
ViewObject_AddRef
,
ViewObject_Release
,
...
...
@@ -151,12 +113,7 @@ static const IViewObjectExVtbl ViewObjectVtbl = {
ViewObject_Unfreeze
,
ViewObject_SetAdvise
,
ViewObject_GetAdvise
,
ViewObject_GetExtent
,
ViewObject_GetRect
,
ViewObject_GetViewStatus
,
ViewObject_QueryHitPoint
,
ViewObject_QueryHitRect
,
ViewObject_GetNaturalExtent
ViewObject_GetExtent
};
#undef VIEWOBJ_THIS
...
...
dlls/shdocvw/webbrowser.c
View file @
a43adb40
...
...
@@ -93,9 +93,6 @@ static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid
}
else
if
(
IsEqualGUID
(
&
IID_IViewObject2
,
riid
))
{
TRACE
(
"(%p)->(IID_IViewObject2 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
VIEWOBJ2
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IViewObjectEx
,
riid
))
{
TRACE
(
"(%p)->(IID_IViewObjectEx %p)
\n
"
,
This
,
ppv
);
*
ppv
=
VIEWOBJEX
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IOleInPlaceActiveObject
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleInPlaceActiveObject %p)
\n
"
,
This
,
ppv
);
*
ppv
=
ACTIVEOBJ
(
This
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment