Index: public/web/WebFormElement.h |
diff --git a/public/web/WebFormElement.h b/public/web/WebFormElement.h |
index c7224cf57a19d0b68b1ea15ceeae874adfa4dc0c..cb2f5d09da718b0820fbff523b78d4503914d320 100644 |
--- a/public/web/WebFormElement.h |
+++ b/public/web/WebFormElement.h |
@@ -40,49 +40,50 @@ class HTMLFormElement; |
class WebInputElement; |
class WebFormControlElement; |
- // A container for passing around a reference to a form element. Provides |
- // some information about the form. |
- class WebFormElement : public WebElement { |
- public: |
- ~WebFormElement() { reset(); } |
+// A container for passing around a reference to a form element. Provides some |
+// information about the form. |
+class WebFormElement : public WebElement { |
+public: |
+ ~WebFormElement() { reset(); } |
- WebFormElement() : WebElement() { } |
- WebFormElement(const WebFormElement& element) : WebElement(element) { } |
+ WebFormElement() : WebElement() { } |
+ WebFormElement(const WebFormElement& element) : WebElement(element) { } |
- WebFormElement& operator=(const WebFormElement& element) |
- { |
- WebElement::assign(element); |
- return *this; |
- } |
- void assign(const WebFormElement& element) { WebElement::assign(element); } |
+ WebFormElement& operator=(const WebFormElement& element) |
+ { |
+ WebElement::assign(element); |
+ return *this; |
+ } |
+ void assign(const WebFormElement& element) { WebElement::assign(element); } |
- BLINK_EXPORT bool autoComplete() const; |
- BLINK_EXPORT WebString action() const; |
- BLINK_EXPORT WebString name() const; |
- BLINK_EXPORT WebString method() const; |
- BLINK_EXPORT bool wasUserSubmitted() const; |
- BLINK_EXPORT void submit(); |
- // FIXME: Deprecate and replace with WebVector<WebElement>. |
- BLINK_EXPORT void getNamedElements(const WebString&, WebVector<WebNode>&); |
- BLINK_EXPORT void getFormControlElements(WebVector<WebFormControlElement>&) const; |
+ BLINK_EXPORT bool autoComplete() const; |
+ BLINK_EXPORT WebString action() const; |
+ BLINK_EXPORT WebString name() const; |
+ BLINK_EXPORT WebString method() const; |
+ BLINK_EXPORT bool wasUserSubmitted() const; |
+ BLINK_EXPORT void submit(); |
+ // FIXME: Deprecate and replace with WebVector<WebElement>. |
+ BLINK_EXPORT void getNamedElements(const WebString&, WebVector<WebNode>&); |
+ BLINK_EXPORT void getFormControlElements(WebVector<WebFormControlElement>&) const; |
- // NOTE: This function dispatches "invalid" events. Only call this if required by a specification (e.g. requestAutocomplete()). |
- BLINK_EXPORT bool checkValidity(); |
+ // NOTE: This function dispatches "invalid" events. Only call this if |
+ // required by a specification (e.g. requestAutocomplete()). |
+ BLINK_EXPORT bool checkValidity(); |
- enum AutocompleteResult { |
- AutocompleteResultSuccess, |
- AutocompleteResultErrorDisabled, |
- AutocompleteResultErrorCancel, |
- AutocompleteResultErrorInvalid, |
- }; |
- BLINK_EXPORT void finishRequestAutocomplete(WebFormElement::AutocompleteResult); |
+ enum AutocompleteResult { |
+ AutocompleteResultSuccess, |
+ AutocompleteResultErrorDisabled, |
+ AutocompleteResultErrorCancel, |
+ AutocompleteResultErrorInvalid, |
+ }; |
+ BLINK_EXPORT void finishRequestAutocomplete(WebFormElement::AutocompleteResult); |
#if BLINK_IMPLEMENTATION |
- WebFormElement(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); |
- WebFormElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); |
- operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const; |
+ WebFormElement(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); |
+ WebFormElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); |
+ operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const; |
#endif |
- }; |
+}; |
} // namespace blink |