Commit 3e042026 authored by tkent@chromium.org's avatar tkent@chromium.org

Unindent namespace content of WebElement.h, WebFormElement.h, and WebInputElement.h

These are the last instances of namespace indentation in public/.

BUG=none
TEST=none; no behavior changes.

Review URL: https://codereview.chromium.org/476633002

git-svn-id: svn://svn.chromium.org/blink/trunk@180271 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a08916b1
...@@ -39,9 +39,9 @@ namespace blink { ...@@ -39,9 +39,9 @@ namespace blink {
class Element; class Element;
struct WebRect; struct WebRect;
// Provides access to some properties of a DOM element node. // Provides access to some properties of a DOM element node.
class WebElement : public WebNode { class WebElement : public WebNode {
public: public:
WebElement() : WebNode() { } WebElement() : WebNode() { }
WebElement(const WebElement& e) : WebNode(e) { } WebElement(const WebElement& e) : WebNode(e) { }
...@@ -74,7 +74,7 @@ struct WebRect; ...@@ -74,7 +74,7 @@ struct WebRect;
// Returns the bounds of the element in viewport space. The bounds // Returns the bounds of the element in viewport space. The bounds
// have been adjusted to include any transformations. This view is // have been adjusted to include any transformations. This view is
// also called the Root View in WebKit. // also called the Root View in Blink.
// This function will update the layout if required. // This function will update the layout if required.
BLINK_EXPORT WebRect boundsInViewportSpace(); BLINK_EXPORT WebRect boundsInViewportSpace();
...@@ -87,7 +87,7 @@ struct WebRect; ...@@ -87,7 +87,7 @@ struct WebRect;
WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&); WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&);
operator PassRefPtrWillBeRawPtr<Element>() const; operator PassRefPtrWillBeRawPtr<Element>() const;
#endif #endif
}; };
} // namespace blink } // namespace blink
......
...@@ -40,10 +40,10 @@ class HTMLFormElement; ...@@ -40,10 +40,10 @@ class HTMLFormElement;
class WebInputElement; class WebInputElement;
class WebFormControlElement; class WebFormControlElement;
// A container for passing around a reference to a form element. Provides // A container for passing around a reference to a form element. Provides some
// some information about the form. // information about the form.
class WebFormElement : public WebElement { class WebFormElement : public WebElement {
public: public:
~WebFormElement() { reset(); } ~WebFormElement() { reset(); }
WebFormElement() : WebElement() { } WebFormElement() : WebElement() { }
...@@ -66,7 +66,8 @@ class WebFormControlElement; ...@@ -66,7 +66,8 @@ class WebFormControlElement;
BLINK_EXPORT void getNamedElements(const WebString&, WebVector<WebNode>&); BLINK_EXPORT void getNamedElements(const WebString&, WebVector<WebNode>&);
BLINK_EXPORT void getFormControlElements(WebVector<WebFormControlElement>&) const; BLINK_EXPORT void getFormControlElements(WebVector<WebFormControlElement>&) const;
// NOTE: This function dispatches "invalid" events. Only call this if required by a specification (e.g. requestAutocomplete()). // NOTE: This function dispatches "invalid" events. Only call this if
// required by a specification (e.g. requestAutocomplete()).
BLINK_EXPORT bool checkValidity(); BLINK_EXPORT bool checkValidity();
enum AutocompleteResult { enum AutocompleteResult {
...@@ -82,7 +83,7 @@ class WebFormControlElement; ...@@ -82,7 +83,7 @@ class WebFormControlElement;
WebFormElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormElement>&); WebFormElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormElement>&);
operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const; operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const;
#endif #endif
}; };
} // namespace blink } // namespace blink
......
...@@ -38,9 +38,9 @@ namespace blink { ...@@ -38,9 +38,9 @@ namespace blink {
class HTMLInputElement; class HTMLInputElement;
class WebElementCollection; class WebElementCollection;
// Provides readonly access to some properties of a DOM input element node. // Provides readonly access to some properties of a DOM input element node.
class WebInputElement : public WebFormControlElement { class WebInputElement : public WebFormControlElement {
public: public:
WebInputElement() : WebFormControlElement() { } WebInputElement() : WebFormControlElement() { }
WebInputElement(const WebInputElement& element) : WebFormControlElement(element) { } WebInputElement(const WebInputElement& element) : WebFormControlElement(element) { }
...@@ -65,9 +65,9 @@ class WebElementCollection; ...@@ -65,9 +65,9 @@ class WebElementCollection;
BLINK_EXPORT void setActivatedSubmit(bool); BLINK_EXPORT void setActivatedSubmit(bool);
BLINK_EXPORT int size() const; BLINK_EXPORT int size() const;
BLINK_EXPORT void setChecked(bool, bool sendEvents = false); BLINK_EXPORT void setChecked(bool, bool sendEvents = false);
// Sets the value inside the text field without being sanitized. // Sets the value inside the text field without being sanitized. Can't be
// Can't be used if a renderer doesn't exist or on a non text field type. // used if a renderer doesn't exist or on a non text field type. Caret will
// Caret will be moved to the end. // be moved to the end.
BLINK_EXPORT void setEditingValue(const WebString&); BLINK_EXPORT void setEditingValue(const WebString&);
BLINK_EXPORT bool isValidValue(const WebString&) const; BLINK_EXPORT bool isValidValue(const WebString&) const;
BLINK_EXPORT bool isChecked() const; BLINK_EXPORT bool isChecked() const;
...@@ -89,14 +89,15 @@ class WebElementCollection; ...@@ -89,14 +89,15 @@ class WebElementCollection;
WebInputElement& operator=(const PassRefPtrWillBeRawPtr<HTMLInputElement>&); WebInputElement& operator=(const PassRefPtrWillBeRawPtr<HTMLInputElement>&);
operator PassRefPtrWillBeRawPtr<HTMLInputElement>() const; operator PassRefPtrWillBeRawPtr<HTMLInputElement>() const;
#endif #endif
}; };
BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*); // This returns 0 if the specified WebElement is not a WebInputElement.
BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*);
inline const WebInputElement* toWebInputElement(const WebElement* element) // This returns 0 if the specified WebElement is not a WebInputElement.
{ inline const WebInputElement* toWebInputElement(const WebElement* element)
{
return toWebInputElement(const_cast<WebElement*>(element)); return toWebInputElement(const_cast<WebElement*>(element));
} }
} // namespace blink } // namespace blink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment