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 {
class Element;
struct WebRect;
// Provides access to some properties of a DOM element node.
class WebElement : public WebNode {
public:
// Provides access to some properties of a DOM element node.
class WebElement : public WebNode {
public:
WebElement() : WebNode() { }
WebElement(const WebElement& e) : WebNode(e) { }
......@@ -74,7 +74,7 @@ struct WebRect;
// Returns the bounds of the element in viewport space. The bounds
// 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.
BLINK_EXPORT WebRect boundsInViewportSpace();
......@@ -87,7 +87,7 @@ struct WebRect;
WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&);
operator PassRefPtrWillBeRawPtr<Element>() const;
#endif
};
};
} // namespace blink
......
......@@ -40,10 +40,10 @@ 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:
// 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() { }
......@@ -66,7 +66,8 @@ class WebFormControlElement;
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()).
// NOTE: This function dispatches "invalid" events. Only call this if
// required by a specification (e.g. requestAutocomplete()).
BLINK_EXPORT bool checkValidity();
enum AutocompleteResult {
......@@ -82,7 +83,7 @@ class WebFormControlElement;
WebFormElement& operator=(const PassRefPtrWillBeRawPtr<HTMLFormElement>&);
operator PassRefPtrWillBeRawPtr<HTMLFormElement>() const;
#endif
};
};
} // namespace blink
......
......@@ -38,9 +38,9 @@ namespace blink {
class HTMLInputElement;
class WebElementCollection;
// Provides readonly access to some properties of a DOM input element node.
class WebInputElement : public WebFormControlElement {
public:
// Provides readonly access to some properties of a DOM input element node.
class WebInputElement : public WebFormControlElement {
public:
WebInputElement() : WebFormControlElement() { }
WebInputElement(const WebInputElement& element) : WebFormControlElement(element) { }
......@@ -65,9 +65,9 @@ class WebElementCollection;
BLINK_EXPORT void setActivatedSubmit(bool);
BLINK_EXPORT int size() const;
BLINK_EXPORT void setChecked(bool, bool sendEvents = false);
// Sets the value inside the text field without being sanitized.
// Can't be used if a renderer doesn't exist or on a non text field type.
// Caret will be moved to the end.
// Sets the value inside the text field without being sanitized. Can't be
// used if a renderer doesn't exist or on a non text field type. Caret will
// be moved to the end.
BLINK_EXPORT void setEditingValue(const WebString&);
BLINK_EXPORT bool isValidValue(const WebString&) const;
BLINK_EXPORT bool isChecked() const;
......@@ -89,14 +89,15 @@ class WebElementCollection;
WebInputElement& operator=(const PassRefPtrWillBeRawPtr<HTMLInputElement>&);
operator PassRefPtrWillBeRawPtr<HTMLInputElement>() const;
#endif
};
};
BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*);
inline const WebInputElement* toWebInputElement(const WebElement* element)
{
// This returns 0 if the specified WebElement is not a WebInputElement.
BLINK_EXPORT WebInputElement* toWebInputElement(WebElement*);
// This returns 0 if the specified WebElement is not a WebInputElement.
inline const WebInputElement* toWebInputElement(const WebElement* element)
{
return toWebInputElement(const_cast<WebElement*>(element));
}
}
} // 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