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 |