Chromium Code Reviews| Index: chrome/browser/views/infobars/infobar_container.cc |
| =================================================================== |
| --- chrome/browser/views/infobars/infobar_container.cc (revision 20591) |
| +++ chrome/browser/views/infobars/infobar_container.cc (working copy) |
| @@ -72,6 +72,25 @@ |
| } |
| } |
| +bool InfoBarContainer::GetAccessibleName(std::wstring* name) { |
| + if (!accessible_name_.empty()) { |
|
jcampan
2009/07/14 16:44:24
Same nit as previously mentioned: DCHECK(name), na
|
| + (*name).assign(accessible_name_); |
| + return true; |
| + } |
| + return false; |
| +} |
| + |
| +bool InfoBarContainer::GetAccessibleRole(AccessibilityTypes::Role* role) { |
| + DCHECK(role); |
| + |
| + *role = AccessibilityTypes::ROLE_TOOLBAR; |
| + return true; |
| +} |
| + |
| +void InfoBarContainer::SetAccessibleName(const std::wstring& name) { |
| + accessible_name_.assign(name); |
| +} |
| + |
| void InfoBarContainer::ViewHierarchyChanged(bool is_add, |
| views::View* parent, |
| views::View* child) { |