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
2db8f1a1
Commit
2db8f1a1
authored
Mar 29, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IActiveScriptSiteWindow stub implementation.
parent
66417eea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
script.c
dlls/mshtml/script.c
+52
-0
No files found.
dlls/mshtml/script.c
View file @
2db8f1a1
...
@@ -43,6 +43,7 @@ static const CLSID CLSID_JScript =
...
@@ -43,6 +43,7 @@ static const CLSID CLSID_JScript =
typedef
struct
{
typedef
struct
{
const
IActiveScriptSiteVtbl
*
lpIActiveScriptSiteVtbl
;
const
IActiveScriptSiteVtbl
*
lpIActiveScriptSiteVtbl
;
const
IActiveScriptSiteInterruptPollVtbl
*
lpIActiveScriptSiteInterruptPollVtbl
;
const
IActiveScriptSiteInterruptPollVtbl
*
lpIActiveScriptSiteInterruptPollVtbl
;
const
IActiveScriptSiteWindowVtbl
*
lpIActiveScriptSiteWindowVtbl
;
LONG
ref
;
LONG
ref
;
...
@@ -59,6 +60,7 @@ typedef struct {
...
@@ -59,6 +60,7 @@ typedef struct {
#define ACTSCPSITE(x) ((IActiveScriptSite*) &(x)->lpIActiveScriptSiteVtbl)
#define ACTSCPSITE(x) ((IActiveScriptSite*) &(x)->lpIActiveScriptSiteVtbl)
#define ACTSCPPOLL(x) ((IActiveScriptSiteInterruptPoll*) &(x)->lpIActiveScriptSiteInterruptPollVtbl)
#define ACTSCPPOLL(x) ((IActiveScriptSiteInterruptPoll*) &(x)->lpIActiveScriptSiteInterruptPollVtbl)
#define ACTSCPWIN(x) ((IActiveScriptSiteWindow*) &(x)->lpIActiveScriptSiteWindowVtbl)
static
BOOL
init_script_engine
(
ScriptHost
*
script_host
)
static
BOOL
init_script_engine
(
ScriptHost
*
script_host
)
{
{
...
@@ -200,6 +202,9 @@ static HRESULT WINAPI ActiveScriptSite_QueryInterface(IActiveScriptSite *iface,
...
@@ -200,6 +202,9 @@ static HRESULT WINAPI ActiveScriptSite_QueryInterface(IActiveScriptSite *iface,
}
else
if
(
IsEqualGUID
(
&
IID_IActiveScriptSiteInterruptPoll
,
riid
))
{
}
else
if
(
IsEqualGUID
(
&
IID_IActiveScriptSiteInterruptPoll
,
riid
))
{
TRACE
(
"(%p)->(IID_IActiveScriptSiteInterruprtPoll %p)
\n
"
,
This
,
ppv
);
TRACE
(
"(%p)->(IID_IActiveScriptSiteInterruprtPoll %p)
\n
"
,
This
,
ppv
);
*
ppv
=
ACTSCPPOLL
(
This
);
*
ppv
=
ACTSCPPOLL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IActiveScriptSiteWindow
,
riid
))
{
TRACE
(
"(%p)->(IID_IActiveScriptSiteWindow %p)
\n
"
,
This
,
ppv
);
*
ppv
=
ACTSCPWIN
(
This
);
}
else
{
}
else
{
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
...
@@ -350,6 +355,51 @@ static const IActiveScriptSiteInterruptPollVtbl ActiveScriptSiteInterruptPollVtb
...
@@ -350,6 +355,51 @@ static const IActiveScriptSiteInterruptPollVtbl ActiveScriptSiteInterruptPollVtb
ActiveScriptSiteInterruptPoll_QueryContinue
ActiveScriptSiteInterruptPoll_QueryContinue
};
};
#define ACTSCPWIN_THIS(iface) DEFINE_THIS(ScriptHost, IActiveScriptSiteWindow, iface)
static
HRESULT
WINAPI
ActiveScriptSiteWindow_QueryInterface
(
IActiveScriptSiteWindow
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
ScriptHost
*
This
=
ACTSCPWIN_THIS
(
iface
);
return
IActiveScriptSite_QueryInterface
(
ACTSCPSITE
(
This
),
riid
,
ppv
);
}
static
ULONG
WINAPI
ActiveScriptSiteWindow_AddRef
(
IActiveScriptSiteWindow
*
iface
)
{
ScriptHost
*
This
=
ACTSCPWIN_THIS
(
iface
);
return
IActiveScriptSite_AddRef
(
ACTSCPSITE
(
This
));
}
static
ULONG
WINAPI
ActiveScriptSiteWindow_Release
(
IActiveScriptSiteWindow
*
iface
)
{
ScriptHost
*
This
=
ACTSCPWIN_THIS
(
iface
);
return
IActiveScriptSite_Release
(
ACTSCPSITE
(
This
));
}
static
HRESULT
WINAPI
ActiveScriptSiteWindow_GetWindow
(
IActiveScriptSiteWindow
*
iface
,
HWND
*
phwnd
)
{
ScriptHost
*
This
=
ACTSCPWIN_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
phwnd
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
ActiveScriptSiteWindow_EnableModeless
(
IActiveScriptSiteWindow
*
iface
,
BOOL
fEnable
)
{
ScriptHost
*
This
=
ACTSCPWIN_THIS
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
fEnable
);
return
E_NOTIMPL
;
}
#undef ACTSCPWIN_THIS
static
const
IActiveScriptSiteWindowVtbl
ActiveScriptSiteWindowVtbl
=
{
ActiveScriptSiteWindow_QueryInterface
,
ActiveScriptSiteWindow_AddRef
,
ActiveScriptSiteWindow_Release
,
ActiveScriptSiteWindow_GetWindow
,
ActiveScriptSiteWindow_EnableModeless
};
static
ScriptHost
*
create_script_host
(
HTMLDocument
*
doc
,
GUID
*
guid
)
static
ScriptHost
*
create_script_host
(
HTMLDocument
*
doc
,
GUID
*
guid
)
{
{
ScriptHost
*
ret
;
ScriptHost
*
ret
;
...
@@ -358,8 +408,10 @@ static ScriptHost *create_script_host(HTMLDocument *doc, GUID *guid)
...
@@ -358,8 +408,10 @@ static ScriptHost *create_script_host(HTMLDocument *doc, GUID *guid)
ret
=
heap_alloc_zero
(
sizeof
(
*
ret
));
ret
=
heap_alloc_zero
(
sizeof
(
*
ret
));
ret
->
lpIActiveScriptSiteVtbl
=
&
ActiveScriptSiteVtbl
;
ret
->
lpIActiveScriptSiteVtbl
=
&
ActiveScriptSiteVtbl
;
ret
->
lpIActiveScriptSiteInterruptPollVtbl
=
&
ActiveScriptSiteInterruptPollVtbl
;
ret
->
lpIActiveScriptSiteInterruptPollVtbl
=
&
ActiveScriptSiteInterruptPollVtbl
;
ret
->
lpIActiveScriptSiteWindowVtbl
=
&
ActiveScriptSiteWindowVtbl
;
ret
->
ref
=
1
;
ret
->
ref
=
1
;
ret
->
doc
=
doc
;
ret
->
doc
=
doc
;
ret
->
script_state
=
SCRIPTSTATE_UNINITIALIZED
;
ret
->
guid
=
*
guid
;
ret
->
guid
=
*
guid
;
list_add_tail
(
&
doc
->
script_hosts
,
&
ret
->
entry
);
list_add_tail
(
&
doc
->
script_hosts
,
&
ret
->
entry
);
...
...
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