diff options
Diffstat (limited to 'WebKitTools/DumpRenderTree/AccessibilityUIElement.h')
-rw-r--r-- | WebKitTools/DumpRenderTree/AccessibilityUIElement.h | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/WebKitTools/DumpRenderTree/AccessibilityUIElement.h b/WebKitTools/DumpRenderTree/AccessibilityUIElement.h index 9985523..e7d3bc7 100644 --- a/WebKitTools/DumpRenderTree/AccessibilityUIElement.h +++ b/WebKitTools/DumpRenderTree/AccessibilityUIElement.h @@ -70,10 +70,16 @@ public: AccessibilityUIElement elementAtPoint(int x, int y); AccessibilityUIElement getChildAtIndex(unsigned); + unsigned indexOfChild(AccessibilityUIElement*); int childrenCount(); AccessibilityUIElement titleUIElement(); AccessibilityUIElement parentElement(); - + + void takeFocus(); + void takeSelection(); + void addSelection(); + void removeSelection(); + // Methods - platform-independent implementations JSStringRef allAttributes(); JSStringRef attributesOfLinkedUIElements(); @@ -85,7 +91,8 @@ public: void showMenu(); // Attributes - platform-independent implementations - JSStringRef attributeValue(JSStringRef attribute); + JSStringRef stringAttributeValue(JSStringRef attribute); + bool boolAttributeValue(JSStringRef attribute); bool isAttributeSupported(JSStringRef attribute); bool isAttributeSettable(JSStringRef attribute); bool isActionSupported(JSStringRef action); @@ -102,7 +109,7 @@ public: double y(); double width(); double height(); - double intValue(); + double intValue() const; double minValue(); double maxValue(); JSStringRef valueDescription(); @@ -111,12 +118,20 @@ public: bool isEnabled(); bool isRequired() const; bool isSelected() const; + bool isSelectable() const; + bool isMultiSelectable() const; bool isExpanded() const; + bool isChecked() const; + bool isVisible() const; + bool isOffScreen() const; + bool isCollapsed() const; + bool hasPopup() const; int hierarchicalLevel() const; double clickPointX(); double clickPointY(); JSStringRef documentEncoding(); JSStringRef documentURI(); + JSStringRef url(); // Table-specific attributes JSStringRef attributesOfColumnHeaders(); @@ -152,10 +167,15 @@ public: // Table-specific AccessibilityUIElement cellForColumnAndRow(unsigned column, unsigned row); + // Notifications + // Function callback should take one argument, the name of the notification. + bool addNotificationListener(JSObjectRef functionCallback); + private: static JSClassRef getJSClass(); PlatformUIElement m_element; + JSObjectRef m_notificationFunctionCallback; }; #endif // AccessibilityUIElement_h |