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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp

Issue 2268183006: Added accessibility notification from Blink when spelling mistakes are detected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
index b37a5d86c095894551447c485c8b0674d710e165..048e6587ff93c5562a9a85a0c4b67ed8a85bec49 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.cpp
@@ -25,6 +25,7 @@
#include "core/editing/spellcheck/SpellCheckRequester.h"
+#include "core/dom/AXObjectCache.h"
#include "core/dom/Document.h"
#include "core/dom/Node.h"
#include "core/editing/EditingUtilities.h"
@@ -284,6 +285,7 @@ void SpellCheckRequester::didCheckSucceed(int sequence, const Vector<TextCheckin
}
}
didCheck(sequence, results);
+ reportDocumentMarkersChangeToAccessibility();
}
void SpellCheckRequester::didCheckCancel(int sequence)
@@ -292,6 +294,17 @@ void SpellCheckRequester::didCheckCancel(int sequence)
didCheck(sequence, results);
}
+void SpellCheckRequester::reportDocumentMarkersChangeToAccessibility() const
+{
+ if (!m_processingRequest || !m_processingRequest->isValid())
+ return;
+
+ AXObjectCache* axObjectCache = frame().document()->existingAXObjectCache();
+ if (!axObjectCache)
+ return;
+ axObjectCache->handleEditableTextContentChanged(m_processingRequest->rootEditableElement());
dmazzoni 2016/08/25 15:19:04 Please add a new AXObjectCache function specifical
+}
+
DEFINE_TRACE(SpellCheckRequester)
{
visitor->trace(m_frame);
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/SpellCheckRequester.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698