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

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

Issue 2805493002: Boolean properties for Accessibility Object Model Phase 1 (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/WebKit/Source/modules/accessibility/AXObject.h
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.h b/third_party/WebKit/Source/modules/accessibility/AXObject.h
index 1c47ffff1790170946dfa0644d5311fe78e729b3..78759923eb0e22a1ad2b04f2481e95b55e99d417 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -53,6 +53,7 @@ class Node;
class LayoutObject;
class ScrollableArea;
+enum class AOMBooleanProperty;
enum class AOMStringProperty;
typedef unsigned AXID;
@@ -604,9 +605,11 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
// Wrappers that retrieve either an Accessibility Object Model property,
// or the equivalent ARIA attribute, in that order.
- // TODO(dmazzoni): Add equivalents for other types of properties besides
- // just strings.
const AtomicString& getAOMPropertyOrARIAAttribute(AOMStringProperty) const;
+ bool getAOMPropertyOrARIAAttribute(AOMBooleanProperty, bool& result) const;
+ bool hasAOMPropertyOrARIAAttribute(AOMBooleanProperty) const;
+ bool AOMPropertyOrARIAAttributeIsTrue(AOMBooleanProperty) const;
+ bool AOMPropertyOrARIAAttributeIsFalse(AOMBooleanProperty) const;
virtual void getSparseAXAttributes(AXSparseAttributeClient&) const {}

Powered by Google App Engine
This is Rietveld 408576698