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

Unified Diff: chrome/browser/ui/views/location_bar/location_icon_view.cc

Issue 2530353002: Views: Add a11y information for IconLabelBubbleView and LocationIconView. (Closed)
Patch Set: Reorder method declaration to match superclass. Created 4 years 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/ui/views/location_bar/location_icon_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/ui/views/location_bar/location_icon_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_icon_view.cc b/chrome/browser/ui/views/location_bar/location_icon_view.cc
index 8377a674ba65283142587f9e88974046563fed0f..f3dfc1a62e401e29a5462ff329e544b9266138f1 100644
--- a/chrome/browser/ui/views/location_bar/location_icon_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_icon_view.cc
@@ -124,6 +124,11 @@ bool LocationIconView::OnActivate(const ui::Event& event) {
return true;
}
+void LocationIconView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ IconLabelBubbleView::GetAccessibleNodeData(node_data);
+ node_data->role = ui::AX_ROLE_POP_UP_BUTTON;
+}
+
gfx::Size LocationIconView::GetMinimumSizeForLabelText(
const base::string16& text) const {
views::Label label(text, font_list());
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_icon_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698