Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: public/web/WebFormElement.h

Issue 476633002: Unindent namespace content of WebElement.h, WebFormElement.h, and WebInputElement.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/web/WebElement.h ('k') | public/web/WebInputElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « public/web/WebElement.h ('k') | public/web/WebInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698