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
90c5baf0
Commit
90c5baf0
authored
Aug 16, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added [Get|Set]ParentContentListener implementation.
parent
bc590e87
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
10 deletions
+61
-10
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
nsembed.c
dlls/mshtml/nsembed.c
+59
-10
No files found.
dlls/mshtml/mshtml_private.h
View file @
90c5baf0
...
...
@@ -124,6 +124,8 @@ struct NSContainer {
NSContainer
*
parent
;
HTMLDocument
*
doc
;
nsIURIContentListener
*
content_listener
;
HWND
hwnd
;
BSCallback
*
bscallback
;
/* hack */
...
...
dlls/mshtml/nsembed.c
View file @
90c5baf0
...
...
@@ -800,7 +800,10 @@ static nsresult NSAPI nsURIContentListener_OnStartURIOpen(nsIURIContentListener
nsIWineURI_Release
(
wine_uri
);
return
NS_ERROR_NOT_IMPLEMENTED
;
*
_retval
=
FALSE
;
return
This
->
content_listener
?
nsIURIContentListener_OnStartURIOpen
(
This
->
content_listener
,
aURI
,
_retval
)
:
NS_OK
;
}
static
nsresult
NSAPI
nsURIContentListener_DoContent
(
nsIURIContentListener
*
iface
,
...
...
@@ -808,9 +811,14 @@ static nsresult NSAPI nsURIContentListener_DoContent(nsIURIContentListener *ifac
nsIStreamListener
**
aContentHandler
,
PRBool
*
_retval
)
{
NSContainer
*
This
=
NSURICL_THIS
(
iface
);
TRACE
(
"(%p)->(%s %x %p %p %p)
\n
"
,
This
,
debugstr_a
(
aContentType
),
aIsContentPreferred
,
aRequest
,
aContentHandler
,
_retval
);
return
NS_ERROR_NOT_IMPLEMENTED
;
return
This
->
content_listener
?
nsIURIContentListener_DoContent
(
This
->
content_listener
,
aContentType
,
aIsContentPreferred
,
aRequest
,
aContentHandler
,
_retval
)
:
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsURIContentListener_IsPreferred
(
nsIURIContentListener
*
iface
,
...
...
@@ -822,7 +830,11 @@ static nsresult NSAPI nsURIContentListener_IsPreferred(nsIURIContentListener *if
/* FIXME: Should we do something here? */
*
_retval
=
TRUE
;
return
NS_OK
;
return
This
->
content_listener
?
nsIURIContentListener_IsPreferred
(
This
->
content_listener
,
aContentType
,
aDesiredContentType
,
_retval
)
:
NS_OK
;
}
static
nsresult
NSAPI
nsURIContentListener_CanHandleContent
(
nsIURIContentListener
*
iface
,
...
...
@@ -830,41 +842,72 @@ static nsresult NSAPI nsURIContentListener_CanHandleContent(nsIURIContentListene
PRBool
*
_retval
)
{
NSContainer
*
This
=
NSURICL_THIS
(
iface
);
TRACE
(
"(%p)->(%s %x %p %p)
\n
"
,
This
,
debugstr_a
(
aContentType
),
aIsContentPreferred
,
aDesiredContentType
,
_retval
);
return
NS_ERROR_NOT_IMPLEMENTED
;
return
This
->
content_listener
?
nsIURIContentListener_CanHandleContent
(
This
->
content_listener
,
aContentType
,
aIsContentPreferred
,
aDesiredContentType
,
_retval
)
:
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsURIContentListener_GetLoadCookie
(
nsIURIContentListener
*
iface
,
nsISupports
**
aLoadCookie
)
{
NSContainer
*
This
=
NSURICL_THIS
(
iface
);
WARN
(
"(%p)->(%p)
\n
"
,
This
,
aLoadCookie
);
return
NS_ERROR_NOT_IMPLEMENTED
;
return
This
->
content_listener
?
nsIURIContentListener_GetLoadCookie
(
This
->
content_listener
,
aLoadCookie
)
:
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsURIContentListener_SetLoadCookie
(
nsIURIContentListener
*
iface
,
nsISupports
*
aLoadCookie
)
{
NSContainer
*
This
=
NSURICL_THIS
(
iface
);
WARN
(
"(%p)->(%p)
\n
"
,
This
,
aLoadCookie
);
return
NS_ERROR_NOT_IMPLEMENTED
;
return
This
->
content_listener
?
nsIURIContentListener_SetLoadCookie
(
This
->
content_listener
,
aLoadCookie
)
:
NS_ERROR_NOT_IMPLEMENTED
;
}
static
nsresult
NSAPI
nsURIContentListener_GetParentContentListener
(
nsIURIContentListener
*
iface
,
nsIURIContentListener
**
aParentContentListener
)
{
NSContainer
*
This
=
NSURICL_THIS
(
iface
);
WARN
(
"(%p)->(%p)
\n
"
,
This
,
aParentContentListener
);
return
NS_ERROR_NOT_IMPLEMENTED
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aParentContentListener
);
if
(
This
->
content_listener
)
nsIURIContentListener_AddRef
(
This
->
content_listener
);
*
aParentContentListener
=
This
->
content_listener
;
return
NS_OK
;
}
static
nsresult
NSAPI
nsURIContentListener_SetParentContentListener
(
nsIURIContentListener
*
iface
,
nsIURIContentListener
*
aParentContentListener
)
{
NSContainer
*
This
=
NSURICL_THIS
(
iface
);
WARN
(
"(%p)->(%p)
\n
"
,
This
,
aParentContentListener
);
return
NS_ERROR_NOT_IMPLEMENTED
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aParentContentListener
);
if
(
aParentContentListener
==
NSURICL
(
This
))
return
NS_OK
;
if
(
This
->
content_listener
)
nsIURIContentListener_Release
(
This
->
content_listener
);
This
->
content_listener
=
aParentContentListener
;
if
(
This
->
content_listener
)
nsIURIContentListener_AddRef
(
This
->
content_listener
);
return
NS_OK
;
}
#undef NSURICL_THIS
...
...
@@ -1185,6 +1228,7 @@ NSContainer *NSContainer_Create(HTMLDocument *doc, NSContainer *parent)
ret
->
doc
=
doc
;
ret
->
ref
=
1
;
ret
->
bscallback
=
NULL
;
ret
->
content_listener
=
NULL
;
if
(
parent
)
nsIWebBrowserChrome_AddRef
(
NSWBCHROME
(
parent
));
...
...
@@ -1275,6 +1319,11 @@ void NSContainer_Release(NSContainer *This)
nsIWebBrowserFocus_Release
(
This
->
focus
);
This
->
focus
=
NULL
;
if
(
This
->
content_listener
)
{
nsIURIContentListener_Release
(
This
->
content_listener
);
This
->
content_listener
=
NULL
;
}
if
(
This
->
hwnd
)
{
DestroyWindow
(
This
->
hwnd
);
This
->
hwnd
=
NULL
;
...
...
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