Bug 795610 - Part g: Introduce custom quickstubs that call the newly introduced WebIDL APIs; r=mounir

This commit is contained in:
Ms2ger 2012-10-06 09:20:56 +02:00
parent 593776c335
commit b99bbfc3f1

View File

@ -230,7 +230,9 @@ members = [
'nsIDOMHTMLElement.itemId', 'nsIDOMHTMLElement.itemId',
'nsIDOMHTMLElement.properties', 'nsIDOMHTMLElement.properties',
'nsIDOMHTMLElement.hidden', 'nsIDOMHTMLElement.hidden',
'nsIDOMHTMLElement.click',
'nsIDOMHTMLElement.tabIndex', 'nsIDOMHTMLElement.tabIndex',
'nsIDOMHTMLElement.focus',
'nsIDOMHTMLElement.accessKey', 'nsIDOMHTMLElement.accessKey',
'nsIDOMHTMLElement.accessKeyLabel', 'nsIDOMHTMLElement.accessKeyLabel',
'nsIDOMHTMLElement.draggable', 'nsIDOMHTMLElement.draggable',
@ -812,6 +814,52 @@ customMethodCalls = {
'nsIDOMHTMLElement_': { 'nsIDOMHTMLElement_': {
'thisType': 'nsGenericHTMLElement' 'thisType': 'nsGenericHTMLElement'
}, },
'nsIDOMHTMLElement_DOMClick': {
'thisType' : 'nsGenericHTMLElement',
'code': ' self->Click();',
'canFail': False
},
'nsIDOMHTMLElement_GetTabIndex': {
'thisType' : 'nsGenericHTMLElement',
'code': ' int32_t result = self->TabIndex();',
'canFail': False
},
'nsIDOMHTMLElement_SetTabIndex': {
'thisType' : 'nsGenericHTMLElement',
'code': ' mozilla::ErrorResult error;\n'
' self->SetTabIndex(arg0, error);\n'
' rv = error.ErrorCode();'
},
'nsIDOMHTMLElement_DOMFocus': {
'thisType' : 'nsGenericHTMLElement',
'code': ' mozilla::ErrorResult error;\n'
' self->Focus(error);\n'
' rv = error.ErrorCode();'
},
'nsIDOMHTMLElement_GetDraggable': {
'thisType' : 'nsGenericHTMLElement',
'code': ' bool result = self->Draggable();',
'canFail': False
},
'nsIDOMHTMLElement_SetDraggable': {
'thisType' : 'nsGenericHTMLElement',
'code': ' mozilla::ErrorResult error;\n'
' self->SetDraggable(arg0, error);\n'
' rv = error.ErrorCode();'
},
'nsIDOMHTMLElement_GetInnerHTML': {
'thisType' : 'nsGenericHTMLElement',
'code': ' nsString result;\n'
' mozilla::ErrorResult error;\n'
' self->GetInnerHTML(result, error);\n'
' rv = error.ErrorCode();'
},
'nsIDOMHTMLElement_SetInnerHTML': {
'thisType' : 'nsGenericHTMLElement',
'code': ' mozilla::ErrorResult error;\n'
' self->SetInnerHTML(arg0, error);\n'
' rv = error.ErrorCode();'
},
'nsIDOMElementCSSInlineStyle_GetStyle': { 'nsIDOMElementCSSInlineStyle_GetStyle': {
'thisType': 'nsStyledElement', 'thisType': 'nsStyledElement',
'code': ' /* XXXbz MathML elements inherit from nsStyledElement but\n' 'code': ' /* XXXbz MathML elements inherit from nsStyledElement but\n'