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

Unified Diff: chrome/browser/accessibility/browser_accessibility.h

Issue 4292001: Add basic support for accessibility hit testing within web contents.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 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 | chrome/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | chrome/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698