summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/exported/web_ax_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/exported/web_ax_context.cc')
-rw-r--r--chromium/third_party/blink/renderer/modules/exported/web_ax_context.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/modules/exported/web_ax_context.cc b/chromium/third_party/blink/renderer/modules/exported/web_ax_context.cc
index 5553fb8bb94..3a0ff3f670f 100644
--- a/chromium/third_party/blink/renderer/modules/exported/web_ax_context.cc
+++ b/chromium/third_party/blink/renderer/modules/exported/web_ax_context.cc
@@ -9,11 +9,12 @@
#include "third_party/blink/renderer/core/accessibility/ax_object_cache.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/modules/accessibility/ax_object_cache_impl.h"
+#include "ui/accessibility/ax_mode.h"
namespace blink {
-WebAXContext::WebAXContext(WebDocument root_document)
- : private_(new AXContext(*root_document.Unwrap<Document>())) {}
+WebAXContext::WebAXContext(WebDocument root_document, const ui::AXMode& mode)
+ : private_(new AXContext(*root_document.Unwrap<Document>(), mode)) {}
WebAXContext::~WebAXContext() {}
@@ -31,4 +32,8 @@ WebAXObject WebAXContext::Root() const {
static_cast<AXObjectCacheImpl*>(&private_->GetAXObjectCache())->Root());
}
+const ui::AXMode& WebAXContext::GetAXMode() const {
+ return private_->GetAXMode();
+}
+
} // namespace blink