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

Unified Diff: chrome/browser/views/location_bar_view.cc

Issue 174252: Adds support and exposure of additional accessibility roles. Includes naming ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 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/location_bar_view.cc
===================================================================
--- chrome/browser/views/location_bar_view.cc (revision 23961)
+++ chrome/browser/views/location_bar_view.cc (working copy)
@@ -699,6 +699,16 @@
}
#endif
+bool LocationBarView::GetAccessibleName(std::wstring* name) {
+ DCHECK(name);
+
+ if (!accessible_name_.empty()) {
+ (*name).assign(accessible_name_);
sky 2009/08/21 21:33:39 name->assign
+ return true;
+ }
+ return false;
+}
+
bool LocationBarView::GetAccessibleRole(AccessibilityTypes::Role* role) {
DCHECK(role);
@@ -706,6 +716,10 @@
return true;
}
+void LocationBarView::SetAccessibleName(const std::wstring& name) {
+ accessible_name_.assign(name);
+}
+
// SelectedKeywordView -------------------------------------------------------
// The background is drawn using ImagePainter3. This is the left/center/right

Powered by Google App Engine
This is Rietveld 408576698