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

Unified Diff: chrome/browser/views/tab_contents/tab_contents_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/tab_contents/tab_contents_container.cc
===================================================================
--- chrome/browser/views/tab_contents/tab_contents_container.cc (revision 20591)
+++ chrome/browser/views/tab_contents/tab_contents_container.cc (working copy)
@@ -75,6 +75,25 @@
}
}
+bool TabContentsContainer::GetAccessibleRole(AccessibilityTypes::Role* role) {
+ DCHECK(role);
+
+ *role = AccessibilityTypes::ROLE_WINDOW;
+ return true;
+}
+
+bool TabContentsContainer::GetAccessibleName(std::wstring* name) {
+ if (!accessible_name_.empty()) {
jcampan 2009/07/14 16:44:24 Same nit as previously mentioned.
+ (*name).assign(accessible_name_);
+ return true;
+ }
+ return false;
+}
+
+void TabContentsContainer::SetAccessibleName(const std::wstring& name) {
+ accessible_name_.assign(name);
+}
+
void TabContentsContainer::ViewHierarchyChanged(bool is_add,
views::View* parent,
views::View* child) {

Powered by Google App Engine
This is Rietveld 408576698