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

Unified Diff: chrome/browser/ui/views/location_bar/icon_label_bubble_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
Index: chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
index cb903aea3cac063ce480193ee70caee419795e16..65804a01e0bbba282c9813879e8f33cd6929e36e 100644
--- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h"
#include "chrome/browser/ui/layout_constants.h"
+#include "ui/accessibility/ax_node_data.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/scoped_canvas.h"
@@ -130,6 +131,10 @@ void IconLabelBubbleView::Layout() {
label_->SetBounds(label_x, 0, label_width, height());
}
+void IconLabelBubbleView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
+ label_->GetAccessibleNodeData(node_data);
+}
+
void IconLabelBubbleView::OnNativeThemeChanged(
const ui::NativeTheme* native_theme) {
label_->SetEnabledColor(GetTextColor());

Powered by Google App Engine
This is Rietveld 408576698