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

Unified Diff: third_party/WebKit/Source/web/WebAXObject.cpp

Issue 2055903002: Expose an interface to generate a unique accessibility ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pdf_2_engine_fixes
Patch Set: Rebase Created 4 years, 6 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 | « no previous file | third_party/WebKit/public/web/WebAXObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebAXObject.cpp
diff --git a/third_party/WebKit/Source/web/WebAXObject.cpp b/third_party/WebKit/Source/web/WebAXObject.cpp
index 18b82a2567520e7fe9342e589acb7d8b3358b80f..4270f0681719a0ff226d4405880650b7ffb99765 100644
--- a/third_party/WebKit/Source/web/WebAXObject.cpp
+++ b/third_party/WebKit/Source/web/WebAXObject.cpp
@@ -121,6 +121,14 @@ int WebAXObject::axID() const
return m_private->axObjectID();
}
+int WebAXObject::generateAXID() const
+{
+ if (isDetached())
+ return -1;
+
+ return m_private->axObjectCache().platformGenerateAXID();
+}
+
bool WebAXObject::updateLayoutAndCheckValidity()
{
if (!isDetached()) {
« no previous file with comments | « no previous file | third_party/WebKit/public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698