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
b21e90ee
Commit
b21e90ee
authored
Oct 10, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added document keydown, keyup, dragstart and selectstart event implementation.
parent
36fa7044
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
17 deletions
+43
-17
htmldoc.c
dlls/mshtml/htmldoc.c
+32
-16
htmlevent.c
dlls/mshtml/htmlevent.c
+9
-1
htmlevent.h
dlls/mshtml/htmlevent.h
+2
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
b21e90ee
...
...
@@ -1011,29 +1011,37 @@ static HRESULT WINAPI HTMLDocument_get_ondblclick(IHTMLDocument2 *iface, VARIANT
static
HRESULT
WINAPI
HTMLDocument_put_onkeyup
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_doc_event
(
This
,
EVENTID_KEYUP
,
&
v
);
}
static
HRESULT
WINAPI
HTMLDocument_get_onkeyup
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_doc_event
(
This
,
EVENTID_KEYUP
,
p
);
}
static
HRESULT
WINAPI
HTMLDocument_put_onkeydown
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_doc_event
(
This
,
EVENTID_KEYDOWN
,
&
v
);
}
static
HRESULT
WINAPI
HTMLDocument_get_onkeydown
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_doc_event
(
This
,
EVENTID_KEYDOWN
,
p
);
}
static
HRESULT
WINAPI
HTMLDocument_put_onkeypress
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
...
...
@@ -1183,29 +1191,37 @@ static HRESULT WINAPI HTMLDocument_get_onrowenter(IHTMLDocument2 *iface, VARIANT
static
HRESULT
WINAPI
HTMLDocument_put_ondragstart
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_doc_event
(
This
,
EVENTID_DRAGSTART
,
&
v
);
}
static
HRESULT
WINAPI
HTMLDocument_get_ondragstart
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_doc_event
(
This
,
EVENTID_DRAGSTART
,
p
);
}
static
HRESULT
WINAPI
HTMLDocument_put_onselectstart
(
IHTMLDocument2
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
set_doc_event
(
This
,
EVENTID_SELECTSTART
,
&
v
);
}
static
HRESULT
WINAPI
HTMLDocument_get_onselectstart
(
IHTMLDocument2
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_doc_event
(
This
,
EVENTID_SELECTSTART
,
p
);
}
static
HRESULT
WINAPI
HTMLDocument_elementFromPoint
(
IHTMLDocument2
*
iface
,
long
x
,
long
y
,
...
...
dlls/mshtml/htmlevent.c
View file @
b21e90ee
...
...
@@ -48,6 +48,9 @@ static const WCHAR onclickW[] = {'o','n','c','l','i','c','k',0};
static
const
WCHAR
dragW
[]
=
{
'd'
,
'r'
,
'a'
,
'g'
,
0
};
static
const
WCHAR
ondragW
[]
=
{
'o'
,
'n'
,
'd'
,
'r'
,
'a'
,
'g'
,
0
};
static
const
WCHAR
dragstartW
[]
=
{
'd'
,
'r'
,
'a'
,
'g'
,
's'
,
't'
,
'a'
,
'r'
,
't'
,
0
};
static
const
WCHAR
ondragstartW
[]
=
{
'o'
,
'n'
,
'd'
,
'r'
,
'a'
,
'g'
,
's'
,
't'
,
'a'
,
'r'
,
't'
,
0
};
static
const
WCHAR
focusW
[]
=
{
'f'
,
'o'
,
'c'
,
'u'
,
's'
,
0
};
static
const
WCHAR
onfocusW
[]
=
{
'o'
,
'n'
,
'f'
,
'o'
,
'c'
,
'u'
,
's'
,
0
};
...
...
@@ -72,6 +75,9 @@ static const WCHAR onmouseupW[] = {'o','n','m','o','u','s','e','u','p',0};
static
const
WCHAR
pasteW
[]
=
{
'p'
,
'a'
,
's'
,
't'
,
'e'
,
0
};
static
const
WCHAR
onpasteW
[]
=
{
'o'
,
'n'
,
'p'
,
'a'
,
's'
,
't'
,
'e'
,
0
};
static
const
WCHAR
selectstartW
[]
=
{
's'
,
'e'
,
'l'
,
'e'
,
'c'
,
't'
,
's'
,
't'
,
'a'
,
'r'
,
't'
,
0
};
static
const
WCHAR
onselectstartW
[]
=
{
'o'
,
'n'
,
's'
,
'e'
,
'l'
,
'e'
,
'c'
,
't'
,
's'
,
't'
,
'a'
,
'r'
,
't'
,
0
};
typedef
struct
{
LPCWSTR
name
;
LPCWSTR
attr_name
;
...
...
@@ -86,6 +92,7 @@ static const event_info_t event_info[] = {
{
changeW
,
onchangeW
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
clickW
,
onclickW
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
dragW
,
ondragW
,
0
},
{
dragstartW
,
ondragstartW
,
0
},
{
focusW
,
onfocusW
,
EVENT_DEFAULTLISTENER
},
{
keydownW
,
onkeydownW
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
keyupW
,
onkeyupW
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
...
...
@@ -93,7 +100,8 @@ static const event_info_t event_info[] = {
{
mousedownW
,
onmousedownW
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
mouseoverW
,
onmouseoverW
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
mouseupW
,
onmouseupW
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
pasteW
,
onpasteW
,
0
}
{
pasteW
,
onpasteW
,
0
},
{
selectstartW
,
onselectstartW
,
0
}
};
eventid_t
str_to_eid
(
LPCWSTR
str
)
...
...
dlls/mshtml/htmlevent.h
View file @
b21e90ee
...
...
@@ -21,6 +21,7 @@ typedef enum {
EVENTID_CHANGE
,
EVENTID_CLICK
,
EVENTID_DRAG
,
EVENTID_DRAGSTART
,
EVENTID_FOCUS
,
EVENTID_KEYDOWN
,
EVENTID_KEYUP
,
...
...
@@ -29,6 +30,7 @@ typedef enum {
EVENTID_MOUSEOVER
,
EVENTID_MOUSEUP
,
EVENTID_PASTE
,
EVENTID_SELECTSTART
,
EVENTID_LAST
}
eventid_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