diff options
author | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-30 01:49:39 +0000 |
---|---|---|
committer | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-30 01:49:39 +0000 |
commit | 8a0a55e61c5efd4711fbf21d49b4001a4cc9908b (patch) | |
tree | 658af47a25e0ec4f84a87c2bf6859c4809ce2f42 /chrome/browser/views/infobars/infobars.h | |
parent | 690aa5c82084132146296cc439b54d5231659d61 (diff) | |
download | chromium_src-8a0a55e61c5efd4711fbf21d49b4001a4cc9908b.zip chromium_src-8a0a55e61c5efd4711fbf21d49b4001a4cc9908b.tar.gz chromium_src-8a0a55e61c5efd4711fbf21d49b4001a4cc9908b.tar.bz2 |
[accessibility] Extension toolbar and infobar container views should not have state visible if they are not rendered on screen.
Add the ROLE_PANE role to viewsaccessibility types.
Provide accessible role and name for BrowserActionsContainer, InfoBarContainer, and InfoBar.
Set BrowserActionsContainer view visibility to true only when it contains browser actions.
Set ExtensionShelf vew visibility to true only when it has non-zero height.
BUG=36224
TEST=Verify extension toolbar and infobar container accessibility info within AccExplore32.exe
Review URL: http://codereview.chromium.org/669275
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43044 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/infobars/infobars.h')
-rw-r--r-- | chrome/browser/views/infobars/infobars.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/views/infobars/infobars.h b/chrome/browser/views/infobars/infobars.h index c222824..5c0f5f6 100644 --- a/chrome/browser/views/infobars/infobars.h +++ b/chrome/browser/views/infobars/infobars.h @@ -77,6 +77,9 @@ class InfoBar : public views::View, static const int kButtonInLabelSpacing; // Overridden from views::View: + virtual bool GetAccessibleName(std::wstring* name); + virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); + virtual void SetAccessibleName(const std::wstring& name); virtual gfx::Size GetPreferredSize(); virtual void Layout(); @@ -130,6 +133,9 @@ class InfoBar : public views::View, // the stack in ViewHierarchyChanged to unwind). void DeleteSelf(); + // Storage of string needed for accessibility. + std::wstring accessible_name_; + // The InfoBar's container InfoBarContainer* container_; |