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

Unified Diff: public/web/WebElement.h

Issue 1347893002: Add WebElement::isEditable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | « Source/web/WebElementTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebElement.h
diff --git a/public/web/WebElement.h b/public/web/WebElement.h
index 797413460988f241ba733b016837a1a9f3ccb334..47fd3f8025a8bb18f6be5c1b4f52a6be2275e9c5 100644
--- a/public/web/WebElement.h
+++ b/public/web/WebElement.h
@@ -50,6 +50,9 @@ public:
BLINK_EXPORT bool isFormControlElement() const;
BLINK_EXPORT bool isTextFormControlElement() const;
+ // If the element is editable, for example by being contenteditable or being
+ // an <input> that isn't readonly or disabled.
+ BLINK_EXPORT bool isEditable() const;
// Returns the qualified name, which may contain a prefix and a colon.
BLINK_EXPORT WebString tagName() const;
// Check if this element has the specified local tag name, and the HTML
« no previous file with comments | « Source/web/WebElementTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698