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

Unified Diff: chrome/browser/views/infobars/infobar_container.cc

Issue 155446: Adds MSAA information to various (previously uncovered) bits of the UI, inclu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
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) {

Powered by Google App Engine
This is Rietveld 408576698