OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class WebElement : public WebNode { | 43 class WebElement : public WebNode { |
44 public: | 44 public: |
45 WebElement() : WebNode() { } | 45 WebElement() : WebNode() { } |
46 WebElement(const WebElement& e) : WebNode(e) { } | 46 WebElement(const WebElement& e) : WebNode(e) { } |
47 | 47 |
48 WebElement& operator=(const WebElement& e) { WebNode::assign(e); return *thi
s; } | 48 WebElement& operator=(const WebElement& e) { WebNode::assign(e); return *thi
s; } |
49 void assign(const WebElement& e) { WebNode::assign(e); } | 49 void assign(const WebElement& e) { WebNode::assign(e); } |
50 | 50 |
51 BLINK_EXPORT bool isFormControlElement() const; | 51 BLINK_EXPORT bool isFormControlElement() const; |
52 BLINK_EXPORT bool isTextFormControlElement() const; | 52 BLINK_EXPORT bool isTextFormControlElement() const; |
| 53 // If the element is editable, for example by being contenteditable or being |
| 54 // an <input> that isn't readonly or disabled. |
| 55 BLINK_EXPORT bool isEditable() const; |
53 // Returns the qualified name, which may contain a prefix and a colon. | 56 // Returns the qualified name, which may contain a prefix and a colon. |
54 BLINK_EXPORT WebString tagName() const; | 57 BLINK_EXPORT WebString tagName() const; |
55 // Check if this element has the specified local tag name, and the HTML | 58 // Check if this element has the specified local tag name, and the HTML |
56 // namespace. Tag name matching is case-insensitive. | 59 // namespace. Tag name matching is case-insensitive. |
57 BLINK_EXPORT bool hasHTMLTagName(const WebString&) const; | 60 BLINK_EXPORT bool hasHTMLTagName(const WebString&) const; |
58 BLINK_EXPORT bool hasAttribute(const WebString&) const; | 61 BLINK_EXPORT bool hasAttribute(const WebString&) const; |
59 BLINK_EXPORT void removeAttribute(const WebString&); | 62 BLINK_EXPORT void removeAttribute(const WebString&); |
60 BLINK_EXPORT WebString getAttribute(const WebString&) const; | 63 BLINK_EXPORT WebString getAttribute(const WebString&) const; |
61 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& value
); | 64 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& value
); |
62 BLINK_EXPORT WebString textContent() const; | 65 BLINK_EXPORT WebString textContent() const; |
(...skipping 18 matching lines...) Expand all Loading... |
81 #if BLINK_IMPLEMENTATION | 84 #if BLINK_IMPLEMENTATION |
82 WebElement(const PassRefPtrWillBeRawPtr<Element>&); | 85 WebElement(const PassRefPtrWillBeRawPtr<Element>&); |
83 WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&); | 86 WebElement& operator=(const PassRefPtrWillBeRawPtr<Element>&); |
84 operator PassRefPtrWillBeRawPtr<Element>() const; | 87 operator PassRefPtrWillBeRawPtr<Element>() const; |
85 #endif | 88 #endif |
86 }; | 89 }; |
87 | 90 |
88 } // namespace blink | 91 } // namespace blink |
89 | 92 |
90 #endif | 93 #endif |
OLD | NEW |