bindings: Return errors in Result rather than setting an out parameter

Fixes #909.
This commit is contained in:
Keegan McAllister 2013-09-18 15:23:03 -07:00
parent 4b0680a136
commit 73c1a12f30
73 changed files with 891 additions and 550 deletions

View file

@ -14,76 +14,87 @@ impl HTMLAppletElement {
None
}
pub fn SetAlign(&mut self, _align: &DOMString, _rv: &mut ErrorResult) {
pub fn SetAlign(&mut self, _align: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Alt(&self) -> DOMString {
None
}
pub fn SetAlt(&self, _alt: &DOMString, _rv: &mut ErrorResult) {
pub fn SetAlt(&self, _alt: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Archive(&self) -> DOMString {
None
}
pub fn SetArchive(&self, _archive: &DOMString, _rv: &mut ErrorResult) {
pub fn SetArchive(&self, _archive: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Code(&self) -> DOMString {
None
}
pub fn SetCode(&self, _code: &DOMString, _rv: &mut ErrorResult) {
pub fn SetCode(&self, _code: &DOMString) -> ErrorResult {
Ok(())
}
pub fn CodeBase(&self) -> DOMString {
None
}
pub fn SetCodeBase(&self, _code_base: &DOMString, _rv: &mut ErrorResult) {
pub fn SetCodeBase(&self, _code_base: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Height(&self) -> DOMString {
None
}
pub fn SetHeight(&self, _height: &DOMString, _rv: &mut ErrorResult) {
pub fn SetHeight(&self, _height: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Hspace(&self) -> u32 {
0
}
pub fn SetHspace(&mut self, _hspace: u32, _rv: &mut ErrorResult) {
pub fn SetHspace(&mut self, _hspace: u32) -> ErrorResult {
Ok(())
}
pub fn Name(&self) -> DOMString {
None
}
pub fn SetName(&mut self, _name: &DOMString, _rv: &mut ErrorResult) {
pub fn SetName(&mut self, _name: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Object(&self) -> DOMString {
None
}
pub fn SetObject(&mut self, _object: &DOMString, _rv: &mut ErrorResult) {
pub fn SetObject(&mut self, _object: &DOMString) -> ErrorResult {
Ok(())
}
pub fn Vspace(&self) -> u32 {
0
}
pub fn SetVspace(&mut self, _vspace: u32, _rv: &mut ErrorResult) {
pub fn SetVspace(&mut self, _vspace: u32) -> ErrorResult {
Ok(())
}
pub fn Width(&self) -> DOMString {
None
}
pub fn SetWidth(&mut self, _width: &DOMString, _rv: &mut ErrorResult) {
pub fn SetWidth(&mut self, _width: &DOMString) -> ErrorResult {
Ok(())
}
}