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
7594b653
Commit
7594b653
authored
May 07, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
May 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added beginning support for oncontextmenu event.
parent
3d0d2782
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
htmldoc3.c
dlls/mshtml/htmldoc3.c
+8
-4
htmlevent.c
dlls/mshtml/htmlevent.c
+5
-0
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-0
nsembed.c
dlls/mshtml/nsembed.c
+3
-0
No files found.
dlls/mshtml/htmldoc3.c
View file @
7594b653
...
...
@@ -308,15 +308,19 @@ static HRESULT WINAPI HTMLDocument3_get_dir(IHTMLDocument3 *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLDocument3_put_oncontextmenu
(
IHTMLDocument3
*
iface
,
VARIANT
v
)
{
HTMLDocument
*
This
=
HTMLDOC3_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->()
\n
"
,
This
);
return
set_doc_event
(
This
,
EVENTID_CONTEXTMENU
,
&
v
);
}
static
HRESULT
WINAPI
HTMLDocument3_get_oncontextmenu
(
IHTMLDocument3
*
iface
,
VARIANT
*
p
)
{
HTMLDocument
*
This
=
HTMLDOC3_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
get_doc_event
(
This
,
EVENTID_CONTEXTMENU
,
p
);
}
static
HRESULT
WINAPI
HTMLDocument3_put_onstop
(
IHTMLDocument3
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/htmlevent.c
View file @
7594b653
...
...
@@ -56,6 +56,9 @@ static const WCHAR onchangeW[] = {'o','n','c','h','a','n','g','e',0};
static
const
WCHAR
clickW
[]
=
{
'c'
,
'l'
,
'i'
,
'c'
,
'k'
,
0
};
static
const
WCHAR
onclickW
[]
=
{
'o'
,
'n'
,
'c'
,
'l'
,
'i'
,
'c'
,
'k'
,
0
};
static
const
WCHAR
contextmenuW
[]
=
{
'c'
,
'o'
,
'n'
,
't'
,
'e'
,
'x'
,
't'
,
'm'
,
'e'
,
'n'
,
'u'
,
0
};
static
const
WCHAR
oncontextmenuW
[]
=
{
'o'
,
'n'
,
'c'
,
'o'
,
'n'
,
't'
,
'e'
,
'x'
,
't'
,
'm'
,
'e'
,
'n'
,
'u'
,
0
};
static
const
WCHAR
dblclickW
[]
=
{
'd'
,
'b'
,
'l'
,
'c'
,
'l'
,
'i'
,
'c'
,
'k'
,
0
};
static
const
WCHAR
ondblclickW
[]
=
{
'o'
,
'n'
,
'd'
,
'b'
,
'l'
,
'c'
,
'l'
,
'i'
,
'c'
,
'k'
,
0
};
...
...
@@ -141,6 +144,8 @@ static const event_info_t event_info[] = {
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
clickW
,
onclickW
,
EVENTT_MOUSE
,
DISPID_EVMETH_ONCLICK
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
contextmenuW
,
oncontextmenuW
,
EVENTT_MOUSE
,
DISPID_EVMETH_ONCONTEXTMENU
,
EVENT_BUBBLE
},
{
dblclickW
,
ondblclickW
,
EVENTT_MOUSE
,
DISPID_EVMETH_ONDBLCLICK
,
EVENT_DEFAULTLISTENER
|
EVENT_BUBBLE
},
{
dragW
,
ondragW
,
EVENTT_MOUSE
,
DISPID_EVMETH_ONDRAG
,
...
...
dlls/mshtml/htmlevent.h
View file @
7594b653
...
...
@@ -21,6 +21,7 @@ typedef enum {
EVENTID_BLUR
,
EVENTID_CHANGE
,
EVENTID_CLICK
,
EVENTID_CONTEXTMENU
,
EVENTID_DBLCLICK
,
EVENTID_DRAG
,
EVENTID_DRAGSTART
,
...
...
dlls/mshtml/nsembed.c
View file @
7594b653
...
...
@@ -32,6 +32,7 @@
#include "wine/unicode.h"
#include "mshtml_private.h"
#include "htmlevent.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
WINE_DECLARE_DEBUG_CHANNEL
(
gecko
);
...
...
@@ -1007,6 +1008,8 @@ static nsresult NSAPI nsContextMenuListener_OnShowContextMenu(nsIContextMenuList
TRACE
(
"(%p)->(%08x %p %p)
\n
"
,
This
,
aContextFlags
,
aEvent
,
aNode
);
fire_event
(
This
->
doc
->
basedoc
.
doc_node
/* FIXME */
,
EVENTID_CONTEXTMENU
,
TRUE
,
aNode
,
aEvent
);
nsres
=
nsIDOMEvent_QueryInterface
(
aEvent
,
&
IID_nsIDOMMouseEvent
,
(
void
**
)
&
event
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIDOMMouseEvent interface: %08x
\n
"
,
nsres
);
...
...
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