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

Unified Diff: Source/modules/accessibility/AXObject.h

Issue 885163002: [Contextual Search] Check for ARIA widget roles. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleaup usage of Web wrappers. Created 5 years, 10 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 | Source/modules/accessibility/AXObject.cpp » ('j') | Source/modules/accessibility/AXObject.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXObject.h
diff --git a/Source/modules/accessibility/AXObject.h b/Source/modules/accessibility/AXObject.h
index c197f4f44b0463ebb7ceb6532ced2eb689035521..45bfd39edaf478b8c3ff65c32919f90f80fd5dce 100644
--- a/Source/modules/accessibility/AXObject.h
+++ b/Source/modules/accessibility/AXObject.h
@@ -608,6 +608,7 @@ public:
static AccessibilityRole ariaRoleToWebCoreRole(const String&);
static IntRect boundingBoxForQuads(LayoutObject*, const Vector<FloatQuad>&);
static const AtomicString& roleName(AccessibilityRole);
+ static bool isInsideFocusableElementOrARIAWidget(const Node&);
protected:
AXID m_id;
@@ -643,6 +644,10 @@ protected:
// Updates the cached attribute values. This may be recursive, so to prevent deadlocks,
// functions called here may only search up the tree (ancestors), not down.
void updateCachedAttributeValuesIfNeeded() const;
+
+private:
+ static bool includesARIAWidgetRole(const String&);
+ static bool hasInteractiveARIAAttribute(const Element&);
};
#define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
« no previous file with comments | « no previous file | Source/modules/accessibility/AXObject.cpp » ('j') | Source/modules/accessibility/AXObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698