Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
781b0873
Commit
781b0873
authored
Apr 15, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IPersistHistory stub implementation.
parent
dbfbce97
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
3 deletions
+78
-3
htmldoc.c
dlls/mshtml/htmldoc.c
+2
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+3
-0
persist.c
dlls/mshtml/persist.c
+72
-0
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+1
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
781b0873
...
...
@@ -134,8 +134,8 @@ static HRESULT WINAPI HTMLDocument_QueryInterface(IHTMLDocument2 *iface, REFIID
TRACE
(
"(%p)->(IID_ISupportErrorInfo %p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
SUPPERRINFO
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IPersistHistory
,
riid
))
{
FIXME
(
"(%p)->(IID_IPersistHistory currently not supported
%p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
NULL
;
TRACE
(
"(%p)->(IID_IPersistHistory
%p)
\n
"
,
This
,
ppvObject
);
*
ppvObject
=
PERSISTHIST
(
This
)
;
}
else
if
(
IsEqualGUID
(
&
CLSID_CMarkup
,
riid
))
{
FIXME
(
"(%p)->(CLSID_CMarkup %p)
\n
"
,
This
,
ppvObject
);
return
E_NOINTERFACE
;
...
...
dlls/mshtml/mshtml_private.h
View file @
781b0873
...
...
@@ -21,6 +21,7 @@
#include "mshtml.h"
#include "mshtmhst.h"
#include "hlink.h"
#include "perhist.h"
#include "dispex.h"
#include "wine/list.h"
...
...
@@ -229,6 +230,7 @@ struct HTMLDocument {
const
IHTMLDocument5Vtbl
*
lpHTMLDocument5Vtbl
;
const
IPersistMonikerVtbl
*
lpPersistMonikerVtbl
;
const
IPersistFileVtbl
*
lpPersistFileVtbl
;
const
IPersistHistoryVtbl
*
lpPersistHistoryVtbl
;
const
IMonikerPropVtbl
*
lpMonikerPropVtbl
;
const
IOleObjectVtbl
*
lpOleObjectVtbl
;
const
IOleDocumentVtbl
*
lpOleDocumentVtbl
;
...
...
@@ -442,6 +444,7 @@ typedef struct {
#define HLNKTARGET(x) ((IHlinkTarget*) &(x)->lpHlinkTargetVtbl)
#define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
#define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
#define PERSISTHIST(x) ((IPersistHistory*) &(x)->lpPersistHistoryVtbl)
#define CUSTOMDOC(x) ((ICustomDoc*) &(x)->lpCustomDocVtbl)
#define NSWBCHROME(x) ((nsIWebBrowserChrome*) &(x)->lpWebBrowserChromeVtbl)
...
...
dlls/mshtml/persist.c
View file @
781b0873
...
...
@@ -748,12 +748,84 @@ static const IPersistStreamInitVtbl PersistStreamInitVtbl = {
PersistStreamInit_InitNew
};
/**********************************************************
* IPersistHistory implementation
*/
#define PERSISTHIST_THIS(iface) DEFINE_THIS(HTMLDocument, PersistHistory, iface)
static
HRESULT
WINAPI
PersistHistory_QueryInterface
(
IPersistHistory
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
HTMLDocument
*
This
=
PERSISTHIST_THIS
(
iface
);
return
IHTMLDocument2_QueryInterface
(
HTMLDOC
(
This
),
riid
,
ppvObject
);
}
static
ULONG
WINAPI
PersistHistory_AddRef
(
IPersistHistory
*
iface
)
{
HTMLDocument
*
This
=
PERSISTHIST_THIS
(
iface
);
return
IHTMLDocument2_AddRef
(
HTMLDOC
(
This
));
}
static
ULONG
WINAPI
PersistHistory_Release
(
IPersistHistory
*
iface
)
{
HTMLDocument
*
This
=
PERSISTHIST_THIS
(
iface
);
return
IHTMLDocument2_Release
(
HTMLDOC
(
This
));
}
static
HRESULT
WINAPI
PersistHistory_GetClassID
(
IPersistHistory
*
iface
,
CLSID
*
pClassID
)
{
HTMLDocument
*
This
=
PERSISTHIST_THIS
(
iface
);
return
IPersist_GetClassID
(
PERSIST
(
This
),
pClassID
);
}
static
HRESULT
WINAPI
PersistHistory_LoadHistory
(
IPersistHistory
*
iface
,
IStream
*
pStream
,
IBindCtx
*
pbc
)
{
HTMLDocument
*
This
=
PERSISTHIST_THIS
(
iface
);
FIXME
(
"(%p)->(%p %p)
\n
"
,
This
,
pStream
,
pbc
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistHistory_SaveHistory
(
IPersistHistory
*
iface
,
IStream
*
pStream
)
{
HTMLDocument
*
This
=
PERSISTHIST_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pStream
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistHistory_SetPositionCookie
(
IPersistHistory
*
iface
,
DWORD
dwPositioncookie
)
{
HTMLDocument
*
This
=
PERSISTHIST_THIS
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
dwPositioncookie
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
PersistHistory_GetPositionCookie
(
IPersistHistory
*
iface
,
DWORD
*
pdwPositioncookie
)
{
HTMLDocument
*
This
=
PERSISTHIST_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pdwPositioncookie
);
return
E_NOTIMPL
;
}
#undef PERSISTHIST_THIS
static
const
IPersistHistoryVtbl
PersistHistoryVtbl
=
{
PersistHistory_QueryInterface
,
PersistHistory_AddRef
,
PersistHistory_Release
,
PersistHistory_GetClassID
,
PersistHistory_LoadHistory
,
PersistHistory_SaveHistory
,
PersistHistory_SetPositionCookie
,
PersistHistory_GetPositionCookie
};
void
HTMLDocument_Persist_Init
(
HTMLDocument
*
This
)
{
This
->
lpPersistMonikerVtbl
=
&
PersistMonikerVtbl
;
This
->
lpPersistFileVtbl
=
&
PersistFileVtbl
;
This
->
lpMonikerPropVtbl
=
&
MonikerPropVtbl
;
This
->
lpPersistStreamInitVtbl
=
&
PersistStreamInitVtbl
;
This
->
lpPersistHistoryVtbl
=
&
PersistHistoryVtbl
;
This
->
bscallback
=
NULL
;
This
->
mon
=
NULL
;
...
...
dlls/mshtml/tests/htmldoc.c
View file @
781b0873
...
...
@@ -4191,7 +4191,7 @@ static void test_IPersistHistory(void)
return
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IPersistHistory
,
(
void
**
)
&
phist
);
todo_wine
ok
(
hres
==
S_OK
,
"QueryInterface returned %08x, expected S_OK
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"QueryInterface returned %08x, expected S_OK
\n
"
,
hres
);
if
(
hres
==
S_OK
)
IPersistHistory_Release
(
phist
);
...
...
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