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
30e2762b
Commit
30e2762b
authored
Dec 04, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDOMEvent::initEvent implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2b37b97d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
4 deletions
+34
-4
htmlevent.c
dlls/mshtml/htmlevent.c
+30
-3
mshtml_private.h
dlls/mshtml/mshtml_private.h
+4
-0
nsembed.c
dlls/mshtml/nsembed.c
+0
-1
No files found.
dlls/mshtml/htmlevent.c
View file @
30e2762b
...
...
@@ -218,7 +218,6 @@ static eventid_t str_to_eid(const WCHAR *str)
return
i
;
}
ERR
(
"unknown type %s
\n
"
,
debugstr_w
(
str
));
return
EVENTID_LAST
;
}
...
...
@@ -1062,11 +1061,39 @@ static HRESULT WINAPI DOMEvent_get_type(IDOMEvent *iface, BSTR *p)
return
S_OK
;
}
#ifdef __i386__
#define nsIDOMEvent_InitEvent(_this,type,bubbles,cancelable) \
((void (WINAPI*)(void*,nsIDOMEvent*,const nsAString*,cpp_bool,cpp_bool)) \
&call_thiscall_func)((_this)->lpVtbl->InitEvent,_this,type,bubbles,cancelable)
#endif
static
HRESULT
WINAPI
DOMEvent_initEvent
(
IDOMEvent
*
iface
,
BSTR
type
,
VARIANT_BOOL
can_bubble
,
VARIANT_BOOL
cancelable
)
{
DOMEvent
*
This
=
impl_from_IDOMEvent
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
nsAString
nsstr
;
TRACE
(
"(%p)->(%s %x %x)
\n
"
,
This
,
debugstr_w
(
type
),
can_bubble
,
cancelable
);
if
(
This
->
target
)
{
TRACE
(
"called on already dispatched event
\n
"
);
return
S_OK
;
}
heap_free
(
This
->
type
);
This
->
type
=
heap_strdupW
(
type
);
if
(
!
This
->
type
)
return
E_OUTOFMEMORY
;
This
->
event_id
=
str_to_eid
(
type
);
This
->
bubbles
=
!!
can_bubble
;
This
->
cancelable
=
!!
cancelable
;
nsAString_InitDepend
(
&
nsstr
,
type
);
nsIDOMEvent_InitEvent
(
This
->
nsevent
,
&
nsstr
,
This
->
bubbles
,
This
->
cancelable
);
nsAString_Finish
(
&
nsstr
);
return
S_OK
;
}
static
HRESULT
WINAPI
DOMEvent_preventDefault
(
IDOMEvent
*
iface
)
...
...
dlls/mshtml/mshtml_private.h
View file @
30e2762b
...
...
@@ -1341,6 +1341,10 @@ static inline VARIANT_BOOL variant_bool(BOOL b)
return
b
?
VARIANT_TRUE
:
VARIANT_FALSE
;
}
#ifdef __i386__
extern
void
*
call_thiscall_func
;
#endif
UINT
cp_from_charset_string
(
BSTR
)
DECLSPEC_HIDDEN
;
BSTR
charset_string_from_cp
(
UINT
)
DECLSPEC_HIDDEN
;
HDC
get_display_dc
(
void
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/nsembed.c
View file @
30e2762b
...
...
@@ -2200,7 +2200,6 @@ void NSContainer_Release(NSContainer *This)
* This will be removed after the next Gecko update, that will change calling convention on Gecko side.
*/
#ifdef __i386__
extern
void
*
call_thiscall_func
;
__ASM_GLOBAL_FUNC
(
call_thiscall_func
,
"popl %eax
\n\t
"
"popl %edx
\n\t
"
...
...
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