aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/htmltextareaelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/htmltextareaelement.rs')
-rw-r--r--src/components/script/dom/htmltextareaelement.rs203
1 files changed, 0 insertions, 203 deletions
diff --git a/src/components/script/dom/htmltextareaelement.rs b/src/components/script/dom/htmltextareaelement.rs
index d5caebee50e..8d9e131e359 100644
--- a/src/components/script/dom/htmltextareaelement.rs
+++ b/src/components/script/dom/htmltextareaelement.rs
@@ -5,7 +5,6 @@
use dom::bindings::codegen::BindingDeclarations::HTMLTextAreaElementBinding;
use dom::bindings::codegen::InheritTypes::HTMLTextAreaElementDerived;
use dom::bindings::js::{JSRef, Temporary};
-use dom::bindings::error::{ErrorResult, Fallible};
use dom::document::Document;
use dom::element::HTMLTextAreaElementTypeId;
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
@@ -38,206 +37,4 @@ impl HTMLTextAreaElement {
}
pub trait HTMLTextAreaElementMethods {
- fn Autofocus(&self) -> bool;
- fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult;
- fn Cols(&self) -> u32;
- fn SetCols(&self, _cols: u32) -> ErrorResult;
- fn Disabled(&self) -> bool;
- fn SetDisabled(&self, _disabled: bool) -> ErrorResult;
- fn MaxLength(&self) -> i32;
- fn SetMaxLength(&self, _max_length: i32) -> ErrorResult;
- fn Name(&self) -> DOMString;
- fn SetName(&self, _name: DOMString) -> ErrorResult;
- fn Placeholder(&self) -> DOMString;
- fn SetPlaceholder(&self, _placeholder: DOMString) -> ErrorResult;
- fn ReadOnly(&self) -> bool;
- fn SetReadOnly(&self, _read_only: bool) -> ErrorResult;
- fn Required(&self) -> bool;
- fn SetRequired(&self, _required: bool) -> ErrorResult;
- fn Rows(&self) -> u32;
- fn SetRows(&self, _rows: u32) -> ErrorResult;
- fn Wrap(&self) -> DOMString;
- fn SetWrap(&self, _wrap: DOMString) -> ErrorResult;
- fn Type(&self) -> DOMString;
- fn SetType(&self, _type: DOMString);
- fn DefaultValue(&self) -> DOMString;
- fn SetDefaultValue(&self, _default_value: DOMString) -> ErrorResult;
- fn Value(&self) -> DOMString;
- fn SetValue(&self, _value: DOMString);
- fn TextLength(&self) -> u32;
- fn SetTextLength(&self, _text_length: u32) -> ErrorResult;
- fn WillValidate(&self) -> bool;
- fn SetWillValidate(&self, _will_validate: bool) -> ErrorResult;
- fn ValidationMessage(&self) -> DOMString;
- fn CheckValidity(&self) -> bool;
- fn SetCustomValidity(&self, _error: DOMString);
- fn Select(&self);
- fn GetSelectionStart(&self) -> Fallible<u32>;
- fn SetSelectionStart(&self, _selection_start: u32) -> ErrorResult;
- fn GetSelectionEnd(&self) -> Fallible<u32>;
- fn SetSelectionEnd(&self, _selection_end: u32) -> ErrorResult;
- fn GetSelectionDirection(&self) -> Fallible<DOMString>;
- fn SetSelectionDirection(&self, _selection_direction: DOMString) -> ErrorResult;
- fn SetRangeText(&self, _replacement: DOMString);
-}
-
-impl<'a> HTMLTextAreaElementMethods for JSRef<'a, HTMLTextAreaElement> {
- fn Autofocus(&self) -> bool {
- false
- }
-
- fn SetAutofocus(&self, _autofocus: bool) -> ErrorResult {
- Ok(())
- }
-
- fn Cols(&self) -> u32 {
- 0
- }
-
- fn SetCols(&self, _cols: u32) -> ErrorResult {
- Ok(())
- }
-
- fn Disabled(&self) -> bool {
- false
- }
-
- fn SetDisabled(&self, _disabled: bool) -> ErrorResult {
- Ok(())
- }
-
- fn MaxLength(&self) -> i32 {
- 0
- }
-
- fn SetMaxLength(&self, _max_length: i32) -> ErrorResult {
- Ok(())
- }
-
- fn Name(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetName(&self, _name: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Placeholder(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetPlaceholder(&self, _placeholder: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn ReadOnly(&self) -> bool {
- false
- }
-
- fn SetReadOnly(&self, _read_only: bool) -> ErrorResult {
- Ok(())
- }
-
- fn Required(&self) -> bool {
- false
- }
-
- fn SetRequired(&self, _required: bool) -> ErrorResult {
- Ok(())
- }
-
- fn Rows(&self) -> u32 {
- 0
- }
-
- fn SetRows(&self, _rows: u32) -> ErrorResult {
- Ok(())
- }
-
- fn Wrap(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetWrap(&self, _wrap: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Type(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetType(&self, _type: DOMString) {
- }
-
- fn DefaultValue(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetDefaultValue(&self, _default_value: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn Value(&self) -> DOMString {
- "".to_owned()
- }
-
- fn SetValue(&self, _value: DOMString) {
- }
-
- fn TextLength(&self) -> u32 {
- 0
- }
-
- fn SetTextLength(&self, _text_length: u32) -> ErrorResult {
- Ok(())
- }
-
- fn WillValidate(&self) -> bool {
- false
- }
-
- fn SetWillValidate(&self, _will_validate: bool) -> ErrorResult {
- Ok(())
- }
-
- fn ValidationMessage(&self) -> DOMString {
- "".to_owned()
- }
-
- fn CheckValidity(&self) -> bool {
- false
- }
-
- fn SetCustomValidity(&self, _error: DOMString) {
- }
-
- fn Select(&self) {
- }
-
- fn GetSelectionStart(&self) -> Fallible<u32> {
- Ok(0)
- }
-
- fn SetSelectionStart(&self, _selection_start: u32) -> ErrorResult {
- Ok(())
- }
-
- fn GetSelectionEnd(&self) -> Fallible<u32> {
- Ok(0)
- }
-
- fn SetSelectionEnd(&self, _selection_end: u32) -> ErrorResult {
- Ok(())
- }
-
- fn GetSelectionDirection(&self) -> Fallible<DOMString> {
- Ok("".to_owned())
- }
-
- fn SetSelectionDirection(&self, _selection_direction: DOMString) -> ErrorResult {
- Ok(())
- }
-
- fn SetRangeText(&self, _replacement: DOMString) {
- }
}