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

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

Issue 2811023: Make the location bar generate accessibility extension API events... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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
« no previous file with comments | « chrome/browser/views/location_bar/location_bar_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/location_bar/location_bar_view.cc
===================================================================
--- chrome/browser/views/location_bar/location_bar_view.cc (revision 51112)
+++ chrome/browser/views/location_bar/location_bar_view.cc (working copy)
@@ -154,6 +154,13 @@
// Hide the widget. NativeViewHostGtk will make it visible again as
// necessary.
gtk_widget_hide(location_entry_->GetNativeView());
+
+ // Associate an accessible name with the location entry.
+ accessible_widget_helper_.reset(new AccessibleWidgetHelper(
+ location_entry_->text_view(), profile_));
+ accessible_widget_helper_->SetWidgetName(
+ location_entry_->text_view(),
+ l10n_util::GetStringUTF8(IDS_ACCNAME_LOCATION));
#endif
location_entry_view_ = new views::NativeViewHost;
location_entry_view_->SetID(VIEW_ID_AUTOCOMPLETE);
« no previous file with comments | « chrome/browser/views/location_bar/location_bar_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698