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
724b248f
Commit
724b248f
authored
Mar 18, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLButtonElement::name implementation.
parent
fb87ee24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
6 deletions
+67
-6
htmlinput.c
dlls/mshtml/htmlinput.c
+32
-6
nsiface.idl
dlls/mshtml/nsiface.idl
+35
-0
No files found.
dlls/mshtml/htmlinput.c
View file @
724b248f
...
...
@@ -1417,6 +1417,8 @@ typedef struct {
HTMLElement
element
;
IHTMLButtonElement
IHTMLButtonElement_iface
;
nsIDOMHTMLButtonElement
*
nsbutton
;
}
HTMLButtonElement
;
static
inline
HTMLButtonElement
*
impl_from_IHTMLButtonElement
(
IHTMLButtonElement
*
iface
)
...
...
@@ -1504,15 +1506,33 @@ static HRESULT WINAPI HTMLButtonElement_get_value(IHTMLButtonElement *iface, BST
static
HRESULT
WINAPI
HTMLButtonElement_put_name
(
IHTMLButtonElement
*
iface
,
BSTR
v
)
{
HTMLButtonElement
*
This
=
impl_from_IHTMLButtonElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
nsAString
name_str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
nsAString_InitDepend
(
&
name_str
,
v
);
nsres
=
nsIDOMHTMLButtonElement_SetName
(
This
->
nsbutton
,
&
name_str
);
nsAString_Finish
(
&
name_str
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"SetName failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLButtonElement_get_name
(
IHTMLButtonElement
*
iface
,
BSTR
*
p
)
{
HTMLButtonElement
*
This
=
impl_from_IHTMLButtonElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
name_str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
name_str
,
NULL
);
nsres
=
nsIDOMHTMLButtonElement_GetName
(
This
->
nsbutton
,
&
name_str
);
return
return_nsstr
(
nsres
,
&
name_str
,
p
);
}
static
HRESULT
WINAPI
HTMLButtonElement_put_status
(
IHTMLButtonElement
*
iface
,
VARIANT
v
)
...
...
@@ -1628,8 +1648,7 @@ static dispex_static_data_t HTMLButtonElement_dispex = {
HRESULT
HTMLButtonElement_Create
(
HTMLDocumentNode
*
doc
,
nsIDOMHTMLElement
*
nselem
,
HTMLElement
**
elem
)
{
HTMLButtonElement
*
ret
;
ERR
(
"!!!
\n
"
);
nsresult
nsres
;
ret
=
heap_alloc_zero
(
sizeof
(
*
ret
));
if
(
!
ret
)
...
...
@@ -1639,6 +1658,13 @@ HRESULT HTMLButtonElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nsele
ret
->
element
.
node
.
vtbl
=
&
HTMLButtonElementImplVtbl
;
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLButtonElement_dispex
);
nsres
=
nsIDOMHTMLElement_QueryInterface
(
nselem
,
&
IID_nsIDOMHTMLButtonElement
,
(
void
**
)
&
ret
->
nsbutton
);
/* Share nsbutton reference with nsnode */
assert
(
nsres
==
NS_OK
&&
(
nsIDOMNode
*
)
ret
->
nsbutton
==
ret
->
element
.
node
.
nsnode
);
nsIDOMNode_Release
(
ret
->
element
.
node
.
nsnode
);
*
elem
=
&
ret
->
element
;
return
S_OK
;
}
dlls/mshtml/nsiface.idl
View file @
724b248f
...
...
@@ -1690,6 +1690,41 @@ interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
[
object
,
uuid
(
8
e40d4d7
-
c204
-
4192
-
802
a
-
0b5602
e9c669
),
local
]
interface
nsIDOMHTMLButtonElement
:
nsIDOMHTMLElement
{
nsresult
GetAutofocus
(
bool
*
aAutofocus
)
;
nsresult
SetAutofocus
(
bool
aAutofocus
)
;
nsresult
GetDisabled
(
bool
*
aDisabled
)
;
nsresult
SetDisabled
(
bool
aDisabled
)
;
nsresult
GetForm
(
nsIDOMHTMLFormElement
**
aForm
)
;
nsresult
GetFormAction
(
nsAString
*
aFormAction
)
;
nsresult
SetFormAction
(
const
nsAString
*
aFormAction
)
;
nsresult
GetFormEnctype
(
nsAString
*
aFormEnctype
)
;
nsresult
SetFormEnctype
(
const
nsAString
*
aFormEnctype
)
;
nsresult
GetFormMethod
(
nsAString
*
aFormMethod
)
;
nsresult
SetFormMethod
(
const
nsAString
*
aFormMethod
)
;
nsresult
GetFormNoValidate
(
bool
*
aFormNoValidate
)
;
nsresult
SetFormNoValidate
(
bool
aFormNoValidate
)
;
nsresult
GetFormTarget
(
nsAString
*
aFormTarget
)
;
nsresult
SetFormTarget
(
const
nsAString
*
aFormTarget
)
;
nsresult
GetName
(
nsAString
*
aName
)
;
nsresult
SetName
(
const
nsAString
*
aName
)
;
nsresult
GetType
(
nsAString
*
aType
)
;
nsresult
SetType
(
const
nsAString
*
aType
)
;
nsresult
GetValue
(
nsAString
*
aValue
)
;
nsresult
SetValue
(
const
nsAString
*
aValue
)
;
nsresult
GetWillValidate
(
bool
*
aWillValidate
)
;
nsresult
GetValidity
(
nsIDOMValidityState
**
aValidity
)
;
nsresult
GetValidationMessage
(
nsAString
*
aValidationMessage
)
;
nsresult
CheckValidity
(
bool
*
_retval
)
;
nsresult
SetCustomValidity
(
const
nsAString
*
error
)
;
}
[
object
,
uuid
(
429b041b
-
06
df
-
486
c
-
9
a3a
-
a1d901cc76a2
),
local
]
...
...
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