Index: chrome/browser/accessibility/browser_accessibility.h |
=================================================================== |
--- chrome/browser/accessibility/browser_accessibility.h (revision 62773) |
+++ chrome/browser/accessibility/browser_accessibility.h (working copy) |
@@ -90,6 +90,26 @@ |
const BrowserAccessibility* old_acc, |
BrowserAccessibility* new_acc); |
+ // Returns the bounds of this object in screen coordinates. |
+ gfx::Rect GetBoundsRect(); |
+ |
+ // Returns the deepest descendant that contains the specified point. |
+ BrowserAccessibility* BrowserAccessibilityForPoint(const gfx::Point& point); |
+ |
+ // Return true if this attribute is in the attributes map. |
+ bool HasAttribute(WebAccessibility::Attribute attribute); |
dmazzoni
2010/11/03 02:21:53
Should the Attribute methods maybe be protected in
Chris Guillory
2010/11/03 17:17:51
Done.
|
+ |
+ // Retrieve the string value of an attribute from the attribute map and |
+ // returns true if found. |
+ bool GetAttribute(WebAccessibility::Attribute attribute, string16* value); |
+ |
+ // Retrieve the value of an attribute from the attribute map and |
+ // if found and nonempty, try to convert it to an integer. |
+ // Returns true only if both the attribute was found and it was successfully |
+ // converted to an integer. |
+ bool GetAttributeAsInt( |
+ WebAccessibility::Attribute attribute, int* value_int); |
+ |
// Accessors |
int32 child_id() const { return child_id_; } |
const std::vector<BrowserAccessibility*>& children() const { |