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
d531c9ec
Commit
d531c9ec
authored
Sep 26, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IActiveScriptSiteUIControl implementation.
parent
c9e6a963
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
script.c
dlls/mshtml/script.c
+46
-0
No files found.
dlls/mshtml/script.c
View file @
d531c9ec
...
...
@@ -67,6 +67,7 @@ struct ScriptHost {
IActiveScriptSite
IActiveScriptSite_iface
;
IActiveScriptSiteInterruptPoll
IActiveScriptSiteInterruptPoll_iface
;
IActiveScriptSiteWindow
IActiveScriptSiteWindow_iface
;
IActiveScriptSiteUIControl
IActiveScriptSiteUIControl_iface
;
IActiveScriptSiteDebug
IActiveScriptSiteDebug_iface
;
IServiceProvider
IServiceProvider_iface
;
...
...
@@ -256,6 +257,9 @@ static HRESULT WINAPI ActiveScriptSite_QueryInterface(IActiveScriptSite *iface,
}
else
if
(
IsEqualGUID
(
&
IID_IActiveScriptSiteWindow
,
riid
))
{
TRACE
(
"(%p)->(IID_IActiveScriptSiteWindow %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IActiveScriptSiteWindow_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IActiveScriptSiteUIControl
,
riid
))
{
TRACE
(
"(%p)->(IID_IActiveScriptSiteUIControl %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IActiveScriptSiteUIControl_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IActiveScriptSiteDebug
,
riid
))
{
TRACE
(
"(%p)->(IID_IActiveScriptSiteDebug %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IActiveScriptSiteDebug_iface
;
...
...
@@ -494,6 +498,47 @@ static const IActiveScriptSiteWindowVtbl ActiveScriptSiteWindowVtbl = {
ActiveScriptSiteWindow_EnableModeless
};
static
inline
ScriptHost
*
impl_from_IActiveScriptSiteUIControl
(
IActiveScriptSiteUIControl
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ScriptHost
,
IActiveScriptSiteUIControl_iface
);
}
static
HRESULT
WINAPI
ActiveScriptSiteUIControl_QueryInterface
(
IActiveScriptSiteUIControl
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
ScriptHost
*
This
=
impl_from_IActiveScriptSiteUIControl
(
iface
);
return
IActiveScriptSite_QueryInterface
(
&
This
->
IActiveScriptSite_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
ActiveScriptSiteUIControl_AddRef
(
IActiveScriptSiteUIControl
*
iface
)
{
ScriptHost
*
This
=
impl_from_IActiveScriptSiteUIControl
(
iface
);
return
IActiveScriptSite_AddRef
(
&
This
->
IActiveScriptSite_iface
);
}
static
ULONG
WINAPI
ActiveScriptSiteUIControl_Release
(
IActiveScriptSiteUIControl
*
iface
)
{
ScriptHost
*
This
=
impl_from_IActiveScriptSiteUIControl
(
iface
);
return
IActiveScriptSite_Release
(
&
This
->
IActiveScriptSite_iface
);
}
static
HRESULT
WINAPI
ActiveScriptSiteUIControl_GetUIBehavior
(
IActiveScriptSiteUIControl
*
iface
,
SCRIPTUICITEM
UicItem
,
SCRIPTUICHANDLING
*
pUicHandling
)
{
ScriptHost
*
This
=
impl_from_IActiveScriptSiteUIControl
(
iface
);
WARN
(
"(%p)->(%d %p) semi-stub
\n
"
,
This
,
UicItem
,
pUicHandling
);
*
pUicHandling
=
SCRIPTUICHANDLING_ALLOW
;
return
S_OK
;
}
static
const
IActiveScriptSiteUIControlVtbl
ActiveScriptSiteUIControlVtbl
=
{
ActiveScriptSiteUIControl_QueryInterface
,
ActiveScriptSiteUIControl_AddRef
,
ActiveScriptSiteUIControl_Release
,
ActiveScriptSiteUIControl_GetUIBehavior
};
static
inline
ScriptHost
*
impl_from_IActiveScriptSiteDebug
(
IActiveScriptSiteDebug
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ScriptHost
,
IActiveScriptSiteDebug_iface
);
...
...
@@ -618,6 +663,7 @@ static ScriptHost *create_script_host(HTMLInnerWindow *window, const GUID *guid)
ret
->
IActiveScriptSite_iface
.
lpVtbl
=
&
ActiveScriptSiteVtbl
;
ret
->
IActiveScriptSiteInterruptPoll_iface
.
lpVtbl
=
&
ActiveScriptSiteInterruptPollVtbl
;
ret
->
IActiveScriptSiteWindow_iface
.
lpVtbl
=
&
ActiveScriptSiteWindowVtbl
;
ret
->
IActiveScriptSiteUIControl_iface
.
lpVtbl
=
&
ActiveScriptSiteUIControlVtbl
;
ret
->
IActiveScriptSiteDebug_iface
.
lpVtbl
=
&
ActiveScriptSiteDebugVtbl
;
ret
->
IServiceProvider_iface
.
lpVtbl
=
&
ASServiceProviderVtbl
;
ret
->
ref
=
1
;
...
...
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