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
f0ca85f7
Commit
f0ca85f7
authored
Aug 09, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added GetMoniker and SetMoniker methods to nsIWineURI.
parent
cba2e194
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
nsiface.idl
dlls/mshtml/nsiface.idl
+4
-0
nsio.c
dlls/mshtml/nsio.c
+35
-0
No files found.
dlls/mshtml/nsiface.idl
View file @
f0ca85f7
...
...
@@ -69,6 +69,8 @@ interface nsILoadGroup;
interface
nsIDOMNode
;
interface
nsIDOMDocument
;
interface
IMoniker
;
[
object
,
uuid
(
00000000
-
0000
-
0000
-
c000
-
000000000046
)
...
...
@@ -1170,4 +1172,6 @@ interface nsIWineURI : nsIURI
nsresult GetNSContainer(NSContainer **aNSContainer);
nsresult SetNSContainer(NSContainer *aNSContainer);
nsresult GetMoniker(IMoniker **aMoniker);
nsresult SetMoniker(IMoniker *aMoniker);
}
dlls/mshtml/nsio.c
View file @
f0ca85f7
...
...
@@ -52,6 +52,7 @@ typedef struct {
nsIURI
*
uri
;
NSContainer
*
container
;
IMoniker
*
mon
;
}
nsURI
;
#define NSURI(x) ((nsIURI*) &(x)->lpWineURIVtbl)
...
...
@@ -1436,6 +1437,37 @@ static nsresult NSAPI nsURI_SetNSContainer(nsIWineURI *iface, NSContainer *aCont
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_GetMoniker
(
nsIWineURI
*
iface
,
IMoniker
**
aMoniker
)
{
nsURI
*
This
=
NSURI_THIS
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aMoniker
);
if
(
This
->
mon
)
IMoniker_AddRef
(
This
->
mon
);
*
aMoniker
=
This
->
mon
;
return
NS_OK
;
}
static
nsresult
NSAPI
nsURI_SetMoniker
(
nsIWineURI
*
iface
,
IMoniker
*
aMoniker
)
{
nsURI
*
This
=
NSURI_THIS
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
aMoniker
);
if
(
This
->
mon
)
{
WARN
(
"Moniker already set: %p
\n
"
,
This
->
container
);
IMoniker_Release
(
This
->
mon
);
}
if
(
aMoniker
)
IMoniker_AddRef
(
aMoniker
);
This
->
mon
=
aMoniker
;
return
NS_OK
;
}
#undef NSURI_THIS
static
const
nsIWineURIVtbl
nsWineURIVtbl
=
{
...
...
@@ -1470,6 +1502,8 @@ static const nsIWineURIVtbl nsWineURIVtbl = {
nsURI_GetOriginCharset
,
nsURI_GetNSContainer
,
nsURI_SetNSContainer
,
nsURI_GetMoniker
,
nsURI_SetMoniker
};
static
nsresult
create_uri
(
nsIURI
*
uri
,
NSContainer
*
container
,
nsIURI
**
_retval
)
...
...
@@ -1480,6 +1514,7 @@ static nsresult create_uri(nsIURI *uri, NSContainer *container, nsIURI **_retval
ret
->
ref
=
1
;
ret
->
uri
=
uri
;
ret
->
container
=
container
;
ret
->
mon
=
NULL
;
if
(
container
)
nsIWebBrowserChrome_AddRef
(
NSWBCHROME
(
container
));
...
...
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