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

Unified Diff: Source/web/WebAXObject.cpp

Issue 774153007: Introduce new API language() to test lang attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Just adding new API. Removing tests. They will go later in the other patch. 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
« no previous file with comments | « no previous file | public/web/WebAXObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebAXObject.cpp
diff --git a/Source/web/WebAXObject.cpp b/Source/web/WebAXObject.cpp
index e5a5e6c8ce7f22fb94cb39bd15a092d5c1df0578..034aaa1a6abf74c583ac5d44e23439ab63230c8c 100644
--- a/Source/web/WebAXObject.cpp
+++ b/Source/web/WebAXObject.cpp
@@ -830,6 +830,14 @@ WebString WebAXObject::title() const
return m_private->title();
}
+WebString WebAXObject::language() const
+{
+ if (isDetached())
+ return WebString();
+
+ return m_private->language();
+}
+
WebAXObject WebAXObject::titleUIElement() const
{
if (isDetached())
« no previous file with comments | « no previous file | public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698