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
d3714ba7
Commit
d3714ba7
authored
Nov 20, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDOMTextNode2 stub interface.
parent
0380ee03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
115 additions
and
5 deletions
+115
-5
htmltextnode.c
dlls/mshtml/htmltextnode.c
+114
-5
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
No files found.
dlls/mshtml/htmltextnode.c
View file @
d3714ba7
...
...
@@ -36,6 +36,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
struct
HTMLDOMTextNode
{
HTMLDOMNode
node
;
IHTMLDOMTextNode
IHTMLDOMTextNode_iface
;
IHTMLDOMTextNode2
IHTMLDOMTextNode2_iface
;
nsIDOMText
*
nstext
;
};
...
...
@@ -170,6 +171,112 @@ static const IHTMLDOMTextNodeVtbl HTMLDOMTextNodeVtbl = {
HTMLDOMTextNode_splitText
};
static
inline
HTMLDOMTextNode
*
impl_from_IHTMLDOMTextNode2
(
IHTMLDOMTextNode2
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLDOMTextNode
,
IHTMLDOMTextNode2_iface
);
}
static
HRESULT
WINAPI
HTMLDOMTextNode2_QueryInterface
(
IHTMLDOMTextNode2
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
return
IHTMLDOMNode_QueryInterface
(
&
This
->
node
.
IHTMLDOMNode_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
HTMLDOMTextNode2_AddRef
(
IHTMLDOMTextNode2
*
iface
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
return
IHTMLDOMNode_AddRef
(
&
This
->
node
.
IHTMLDOMNode_iface
);
}
static
ULONG
WINAPI
HTMLDOMTextNode2_Release
(
IHTMLDOMTextNode2
*
iface
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
return
IHTMLDOMNode_Release
(
&
This
->
node
.
IHTMLDOMNode_iface
);
}
static
HRESULT
WINAPI
HTMLDOMTextNode2_GetTypeInfoCount
(
IHTMLDOMTextNode2
*
iface
,
UINT
*
pctinfo
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
return
IDispatchEx_GetTypeInfoCount
(
&
This
->
node
.
dispex
.
IDispatchEx_iface
,
pctinfo
);
}
static
HRESULT
WINAPI
HTMLDOMTextNode2_GetTypeInfo
(
IHTMLDOMTextNode2
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
return
IDispatchEx_GetTypeInfo
(
&
This
->
node
.
dispex
.
IDispatchEx_iface
,
iTInfo
,
lcid
,
ppTInfo
);
}
static
HRESULT
WINAPI
HTMLDOMTextNode2_GetIDsOfNames
(
IHTMLDOMTextNode2
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
return
IDispatchEx_GetIDsOfNames
(
&
This
->
node
.
dispex
.
IDispatchEx_iface
,
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
}
static
HRESULT
WINAPI
HTMLDOMTextNode2_Invoke
(
IHTMLDOMTextNode2
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
return
IDispatchEx_Invoke
(
&
This
->
node
.
dispex
.
IDispatchEx_iface
,
dispIdMember
,
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
static
HRESULT
WINAPI
HTMLDOMTextNode2_substringData
(
IHTMLDOMTextNode2
*
iface
,
LONG
offset
,
LONG
count
,
BSTR
*
string
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
FIXME
(
"(%p)->(%d %d %p)
\n
"
,
This
,
offset
,
count
,
string
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDOMTextNode2_appendData
(
IHTMLDOMTextNode2
*
iface
,
BSTR
string
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
string
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDOMTextNode2_insertData
(
IHTMLDOMTextNode2
*
iface
,
LONG
offset
,
BSTR
string
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
FIXME
(
"(%p)->(%d %s)
\n
"
,
This
,
offset
,
debugstr_w
(
string
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDOMTextNode2_deleteData
(
IHTMLDOMTextNode2
*
iface
,
LONG
offset
,
LONG
count
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
FIXME
(
"(%p)->(%d %d)
\n
"
,
This
,
offset
,
count
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLDOMTextNode2_replaceData
(
IHTMLDOMTextNode2
*
iface
,
LONG
offset
,
LONG
count
,
BSTR
string
)
{
HTMLDOMTextNode
*
This
=
impl_from_IHTMLDOMTextNode2
(
iface
);
FIXME
(
"(%p)->(%d %d %s)
\n
"
,
This
,
offset
,
count
,
debugstr_w
(
string
));
return
E_NOTIMPL
;
}
static
const
IHTMLDOMTextNode2Vtbl
HTMLDOMTextNode2Vtbl
=
{
HTMLDOMTextNode2_QueryInterface
,
HTMLDOMTextNode2_AddRef
,
HTMLDOMTextNode2_Release
,
HTMLDOMTextNode2_GetTypeInfoCount
,
HTMLDOMTextNode2_GetTypeInfo
,
HTMLDOMTextNode2_GetIDsOfNames
,
HTMLDOMTextNode2_Invoke
,
HTMLDOMTextNode2_substringData
,
HTMLDOMTextNode2_appendData
,
HTMLDOMTextNode2_insertData
,
HTMLDOMTextNode2_deleteData
,
HTMLDOMTextNode2_replaceData
};
static
inline
HTMLDOMTextNode
*
impl_from_HTMLDOMNode
(
HTMLDOMNode
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLDOMTextNode
,
node
);
...
...
@@ -179,14 +286,14 @@ static HRESULT HTMLDOMTextNode_QI(HTMLDOMNode *iface, REFIID riid, void **ppv)
{
HTMLDOMTextNode
*
This
=
impl_from_HTMLDOMNode
(
iface
);
*
ppv
=
NULL
;
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
)
;
if
(
IsEqualGUID
(
&
IID_IHTMLDOMTextNode
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLDOMTextNode %p)
\n
"
,
This
,
ppv
);
if
(
IsEqualGUID
(
&
IID_IHTMLDOMTextNode
,
riid
))
*
ppv
=
&
This
->
IHTMLDOMTextNode_iface
;
}
else
{
else
if
(
IsEqualGUID
(
&
IID_IHTMLDOMTextNode2
,
riid
))
*
ppv
=
&
This
->
IHTMLDOMTextNode2_iface
;
else
return
HTMLDOMNode_QI
(
&
This
->
node
,
riid
,
ppv
);
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
...
...
@@ -212,6 +319,7 @@ static const tid_t HTMLDOMTextNode_iface_tids[] = {
IHTMLDOMNode_tid
,
IHTMLDOMNode2_tid
,
IHTMLDOMTextNode_tid
,
IHTMLDOMTextNode2_tid
,
0
};
static
dispex_static_data_t
HTMLDOMTextNode_dispex
=
{
...
...
@@ -232,6 +340,7 @@ HRESULT HTMLDOMTextNode_Create(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLDO
ret
->
node
.
vtbl
=
&
HTMLDOMTextNodeImplVtbl
;
ret
->
IHTMLDOMTextNode_iface
.
lpVtbl
=
&
HTMLDOMTextNodeVtbl
;
ret
->
IHTMLDOMTextNode2_iface
.
lpVtbl
=
&
HTMLDOMTextNode2Vtbl
;
init_dispex
(
&
ret
->
node
.
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLDOMTextNode_iface
,
&
HTMLDOMTextNode_dispex
);
...
...
dlls/mshtml/mshtml_private.h
View file @
d3714ba7
...
...
@@ -140,6 +140,7 @@ typedef struct event_target_t event_target_t;
XIID(IHTMLDOMNode) \
XIID(IHTMLDOMNode2) \
XIID(IHTMLDOMTextNode) \
XIID(IHTMLDOMTextNode2) \
XIID(IHTMLElement) \
XIID(IHTMLElement2) \
XIID(IHTMLElement3) \
...
...
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