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
b4a228f4
Commit
b4a228f4
authored
Aug 29, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added nsIDirectoryServiceProvider2 implementation.
parent
87fabd10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
12 deletions
+33
-12
nsembed.c
dlls/mshtml/nsembed.c
+23
-12
nsiface.idl
dlls/mshtml/nsiface.idl
+10
-0
No files found.
dlls/mshtml/nsembed.c
View file @
b4a228f4
...
...
@@ -93,7 +93,7 @@ nsresult create_nsfile(const PRUnichar *path, nsIFile **ret)
return
nsres
;
}
static
nsresult
NSAPI
nsDirectoryServiceProvider
_QueryInterface
(
nsIDirectoryServiceProvider
*
iface
,
static
nsresult
NSAPI
nsDirectoryServiceProvider
2_QueryInterface
(
nsIDirectoryServiceProvider2
*
iface
,
nsIIDRef
riid
,
void
**
result
)
{
if
(
IsEqualGUID
(
&
IID_nsISupports
,
riid
))
{
...
...
@@ -102,6 +102,9 @@ static nsresult NSAPI nsDirectoryServiceProvider_QueryInterface(nsIDirectoryServ
}
else
if
(
IsEqualGUID
(
&
IID_nsIDirectoryServiceProvider
,
riid
))
{
TRACE
(
"(IID_nsIDirectoryServiceProvider %p)
\n
"
,
result
);
*
result
=
iface
;
}
else
if
(
IsEqualGUID
(
&
IID_nsIDirectoryServiceProvider2
,
riid
))
{
TRACE
(
"(IID_nsIDirectoryServiceProvider2 %p)
\n
"
,
result
);
*
result
=
iface
;
}
else
{
WARN
(
"(%s %p)
\n
"
,
debugstr_guid
(
riid
),
result
);
*
result
=
NULL
;
...
...
@@ -112,12 +115,12 @@ static nsresult NSAPI nsDirectoryServiceProvider_QueryInterface(nsIDirectoryServ
return
NS_OK
;
}
static
nsrefcnt
NSAPI
nsDirectoryServiceProvider
_AddRef
(
nsIDirectoryServiceProvider
*
iface
)
static
nsrefcnt
NSAPI
nsDirectoryServiceProvider
2_AddRef
(
nsIDirectoryServiceProvider2
*
iface
)
{
return
2
;
}
static
nsrefcnt
NSAPI
nsDirectoryServiceProvider
_Release
(
nsIDirectoryServiceProvider
*
iface
)
static
nsrefcnt
NSAPI
nsDirectoryServiceProvider
2_Release
(
nsIDirectoryServiceProvider2
*
iface
)
{
return
1
;
}
...
...
@@ -157,7 +160,7 @@ static nsresult create_profile_directory(void)
return
nsres
;
}
static
nsresult
NSAPI
nsDirectoryServiceProvider
_GetFile
(
nsIDirectoryServiceProvider
*
iface
,
static
nsresult
NSAPI
nsDirectoryServiceProvider
2_GetFile
(
nsIDirectoryServiceProvider2
*
iface
,
const
char
*
prop
,
cpp_bool
*
persistent
,
nsIFile
**
_retval
)
{
TRACE
(
"(%s %p %p)
\n
"
,
debugstr_a
(
prop
),
persistent
,
_retval
);
...
...
@@ -177,15 +180,23 @@ static nsresult NSAPI nsDirectoryServiceProvider_GetFile(nsIDirectoryServiceProv
return
NS_ERROR_FAILURE
;
}
static
const
nsIDirectoryServiceProviderVtbl
nsDirectoryServiceProviderVtbl
=
{
nsDirectoryServiceProvider_QueryInterface
,
nsDirectoryServiceProvider_AddRef
,
nsDirectoryServiceProvider_Release
,
nsDirectoryServiceProvider_GetFile
static
nsresult
NSAPI
nsDirectoryServiceProvider2_GetFiles
(
nsIDirectoryServiceProvider2
*
iface
,
const
char
*
prop
,
nsISimpleEnumerator
**
_retval
)
{
TRACE
(
"(%s %p)
\n
"
,
debugstr_a
(
prop
),
_retval
);
return
NS_ERROR_FAILURE
;
}
static
const
nsIDirectoryServiceProvider2Vtbl
nsDirectoryServiceProvider2Vtbl
=
{
nsDirectoryServiceProvider2_QueryInterface
,
nsDirectoryServiceProvider2_AddRef
,
nsDirectoryServiceProvider2_Release
,
nsDirectoryServiceProvider2_GetFile
,
nsDirectoryServiceProvider2_GetFiles
};
static
nsIDirectoryServiceProvider
nsDirectoryServiceProvider
=
{
&
nsDirectoryServiceProviderVtbl
};
static
nsIDirectoryServiceProvider
2
nsDirectoryServiceProvider2
=
{
&
nsDirectoryServiceProvider
2
Vtbl
};
static
LRESULT
WINAPI
nsembed_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
...
...
@@ -544,7 +555,7 @@ static BOOL init_xpcom(const PRUnichar *gre_path)
return
FALSE
;
}
nsres
=
NS_InitXPCOM2
(
&
pServMgr
,
gre_dir
,
&
nsDirectoryServiceProvider
);
nsres
=
NS_InitXPCOM2
(
&
pServMgr
,
gre_dir
,
(
nsIDirectoryServiceProvider
*
)
&
nsDirectoryServiceProvider2
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"NS_InitXPCOM2 failed: %08x
\n
"
,
nsres
);
FreeLibrary
(
xul_handle
);
...
...
dlls/mshtml/nsiface.idl
View file @
b4a228f4
...
...
@@ -2517,6 +2517,16 @@ interface nsIDirectoryServiceProvider : nsISupports
[
object,
uuid(2f977d4b-5485-11d4-87e2-0010a4e75ef2),
local
]
interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider
{
nsresult GetFiles(const char *prop, nsISimpleEnumerator **_retval);
}
[
object,
uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
local
]
...
...
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