summaryrefslogtreecommitdiffstats
path: root/views/view.h
diff options
context:
space:
mode:
authorctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-27 23:00:03 +0000
committerctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-27 23:00:03 +0000
commitb82a049e6ffc65c14daf1c2c8bee6390cb7fe1fa (patch)
tree21f95e3df23460ae77342f865a24178d0cadba89 /views/view.h
parent6f496b2703a7ccb7bba1dbb14a2b9c00f02a853e (diff)
downloadchromium_src-b82a049e6ffc65c14daf1c2c8bee6390cb7fe1fa.zip
chromium_src-b82a049e6ffc65c14daf1c2c8bee6390cb7fe1fa.tar.gz
chromium_src-b82a049e6ffc65c14daf1c2c8bee6390cb7fe1fa.tar.bz2
Initial work to fix the IAccessible tree in circumstances where there is a widget not at the root of the UI heirarchy. Also contains misc fixes for setting correct name/role for controls found in the Options dialog.
BUG=9621 TEST=none Review URL: http://codereview.chromium.org/2174002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r--views/view.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/views/view.h b/views/view.h
index 83247e6..c0f6f07 100644
--- a/views/view.h
+++ b/views/view.h
@@ -265,6 +265,8 @@ class View : public AcceleratorTarget {
// Returns whether the view is hot-tracked.
virtual bool IsHotTracked() const { return false; }
+ virtual Widget* child_widget() { return NULL; }
+
// Returns whether the view is pushed.
virtual bool IsPushed() const { return false; }
@@ -562,9 +564,7 @@ class View : public AcceleratorTarget {
// assistive technologies (ATs) use to determine what behavior to expect from
// a given control. Sets the input Role appropriately, and returns true if
// successful.
- virtual bool GetAccessibleRole(AccessibilityTypes::Role* role) {
- return false;
- }
+ virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);
// Returns the accessibility state of the current view. Sets the input State
// appropriately, and returns true if successful.
@@ -581,6 +581,8 @@ class View : public AcceleratorTarget {
// certain type.
void SetAccessibleName(const std::wstring& name);
+ void SetAccessibleRole(const AccessibilityTypes::Role role);
+
// Returns an instance of a wrapper class implementing the (platform-specific)
// accessibility interface for a given View. If one exists, it will be
// re-used, otherwise a new instance will be created.
@@ -1245,6 +1247,9 @@ class View : public AcceleratorTarget {
// Name for this view, which can be retrieved by accessibility APIs.
std::wstring accessible_name_;
+ // Role for this view, which can be retrieved by accessibility APIs.
+ AccessibilityTypes::Role accessible_role_;
+
// Next view to be focused when the Tab key is pressed.
View* next_focusable_view_;