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

Unified Diff: Source/web/WebAXObject.cpp

Issue 813473004: Introducing new API placeHolder() to expose placeholder attribute on MAC (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
Index: Source/web/WebAXObject.cpp
diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp
index 5ec50ff479bed5a8bfdb9863db987c3071ad247a..dd8fbab025c68a2f61874454fcb58084b8f7d456 100644
--- a/Source/web/WebAXObject.cpp
+++ b/Source/web/WebAXObject.cpp
@@ -237,6 +237,14 @@ WebString WebAXObject::ariaAutoComplete() const
return m_private->ariaAutoComplete();
}
+WebString WebAXObject::placeHolder() const
+{
+ if (isDetached())
+ return WebString();
+
+ return WebString(m_private->placeHolder());
+}
+
bool WebAXObject::isButtonStateMixed() const
{
if (isDetached())

Powered by Google App Engine
This is Rietveld 408576698