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
fc4fd71e
Commit
fc4fd71e
authored
Jun 29, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Store connection point as a list.
parent
fb16633d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
18 deletions
+27
-18
conpoint.c
dlls/mshtml/conpoint.c
+18
-18
htmldoc.c
dlls/mshtml/htmldoc.c
+5
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+4
-0
No files found.
dlls/mshtml/conpoint.c
View file @
fc4fd71e
...
...
@@ -184,13 +184,17 @@ static const IConnectionPointVtbl ConnectionPointVtbl =
ConnectionPoint_EnumConnections
};
static
void
ConnectionPoint_Init
(
HTMLDocument
*
doc
,
REFIID
riid
,
ConnectionPoint
*
cp
)
void
ConnectionPoint_Init
(
ConnectionPoint
*
cp
,
HTMLDocument
*
doc
,
REFIID
riid
,
ConnectionPoint
*
prev
)
{
cp
->
lpConnectionPointVtbl
=
&
ConnectionPointVtbl
;
cp
->
doc
=
doc
;
cp
->
sinks
=
NULL
;
cp
->
sinks_size
=
0
;
cp
->
iid
=
*
riid
;
cp
->
next
=
NULL
;
if
(
prev
)
prev
->
next
=
cp
;
}
static
void
ConnectionPoint_Destroy
(
ConnectionPoint
*
This
)
...
...
@@ -238,18 +242,15 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo
REFIID
riid
,
IConnectionPoint
**
ppCP
)
{
HTMLDocument
*
This
=
CONPTCONT_THIS
(
iface
);
ConnectionPoint
*
iter
;
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppCP
);
*
ppCP
=
NULL
;
if
(
IsEqualGUID
(
&
DIID_HTMLDocumentEvents
,
riid
))
{
TRACE
(
"(%p)->(DIID_HTMLDocumentEvents %p)
\n
"
,
This
,
ppCP
);
*
ppCP
=
CONPOINT
(
&
This
->
cp_htmldocevents
);
}
else
if
(
IsEqualGUID
(
&
DIID_HTMLDocumentEvents2
,
riid
))
{
TRACE
(
"(%p)->(DIID_HTMLDocumentEvents2 %p)
\n
"
,
This
,
ppCP
);
*
ppCP
=
CONPOINT
(
&
This
->
cp_htmldocevents2
);
}
else
if
(
IsEqualGUID
(
&
IID_IPropertyNotifySink
,
riid
))
{
TRACE
(
"(%p)->(IID_IPropertyNotifySink %p)
\n
"
,
This
,
ppCP
);
*
ppCP
=
CONPOINT
(
&
This
->
cp_propnotif
);
for
(
iter
=
&
This
->
cp_propnotif
;
iter
;
iter
=
iter
->
next
)
{
if
(
IsEqualGUID
(
&
iter
->
iid
,
riid
))
*
ppCP
=
CONPOINT
(
iter
);
}
if
(
*
ppCP
)
{
...
...
@@ -257,7 +258,7 @@ static HRESULT WINAPI ConnectionPointContainer_FindConnectionPoint(IConnectionPo
return
S_OK
;
}
FIXME
(
"
(%p)->(%s %p) unsupported riid
\n
"
,
This
,
debugstr_guid
(
riid
),
ppCP
);
FIXME
(
"
unsupported riid %s
\n
"
,
debugstr_guid
(
riid
)
);
return
CONNECT_E_NOCONNECTION
;
}
...
...
@@ -274,15 +275,14 @@ static const IConnectionPointContainerVtbl ConnectionPointContainerVtbl = {
void
HTMLDocument_ConnectionPoints_Init
(
HTMLDocument
*
This
)
{
This
->
lpConnectionPointContainerVtbl
=
&
ConnectionPointContainerVtbl
;
ConnectionPoint_Init
(
This
,
&
IID_IPropertyNotifySink
,
&
This
->
cp_propnotif
);
ConnectionPoint_Init
(
This
,
&
DIID_HTMLDocumentEvents
,
&
This
->
cp_htmldocevents
);
ConnectionPoint_Init
(
This
,
&
DIID_HTMLDocumentEvents2
,
&
This
->
cp_htmldocevents2
);
}
void
HTMLDocument_ConnectionPoints_Destroy
(
HTMLDocument
*
This
)
{
ConnectionPoint_Destroy
(
&
This
->
cp_propnotif
);
ConnectionPoint_Destroy
(
&
This
->
cp_htmldocevents
);
ConnectionPoint_Destroy
(
&
This
->
cp_htmldocevents2
);
ConnectionPoint
*
iter
=
&
This
->
cp_propnotif
;
while
(
iter
)
{
ConnectionPoint_Destroy
(
iter
);
iter
=
iter
->
next
;
}
}
dlls/mshtml/htmldoc.c
View file @
fc4fd71e
...
...
@@ -1143,6 +1143,11 @@ HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
HTMLDocument_Hlink_Init
(
ret
);
HTMLDocument_ConnectionPoints_Init
(
ret
);
ConnectionPoint_Init
(
&
ret
->
cp_propnotif
,
ret
,
&
IID_IPropertyNotifySink
,
NULL
);
ConnectionPoint_Init
(
&
ret
->
cp_htmldocevents
,
ret
,
&
DIID_HTMLDocumentEvents
,
&
ret
->
cp_propnotif
);
ConnectionPoint_Init
(
&
ret
->
cp_htmldocevents2
,
ret
,
&
DIID_HTMLDocumentEvents2
,
&
ret
->
cp_htmldocevents
);
ret
->
nscontainer
=
NSContainer_Create
(
ret
,
NULL
);
ret
->
window
=
HTMLWindow_Create
(
ret
);
...
...
dlls/mshtml/mshtml_private.h
View file @
fc4fd71e
...
...
@@ -84,6 +84,8 @@ struct ConnectionPoint {
DWORD
sinks_size
;
IID
iid
;
ConnectionPoint
*
next
;
};
struct
HTMLDocument
{
...
...
@@ -340,6 +342,8 @@ void HTMLDocument_ConnectionPoints_Init(HTMLDocument*);
void
HTMLDocument_ConnectionPoints_Destroy
(
HTMLDocument
*
);
void
ConnectionPoint_Init
(
ConnectionPoint
*
,
HTMLDocument
*
,
REFIID
,
ConnectionPoint
*
);
NSContainer
*
NSContainer_Create
(
HTMLDocument
*
,
NSContainer
*
);
void
NSContainer_Release
(
NSContainer
*
);
...
...
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