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

Unified Diff: ui/app_list/views/tile_item_view.cc

Issue 901153007: Add ChromeVox Support for the AppLauncher's Start Page Tile Items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/tile_item_view.cc
diff --git a/ui/app_list/views/tile_item_view.cc b/ui/app_list/views/tile_item_view.cc
index 68c26532beb8b40ebce13487c81cd606c58bd459..1932a7fd21dc3d5b6e1a9455709eecb11ba648db 100644
--- a/ui/app_list/views/tile_item_view.cc
+++ b/ui/app_list/views/tile_item_view.cc
@@ -55,6 +55,7 @@ void TileItemView::SetSelected(bool selected) {
selected_ = selected;
UpdateBackgroundColor();
+ NotifyAccessibilityEvent(ui::AX_EVENT_FOCUS, true);
}
void TileItemView::SetParentBackgroundColor(SkColor color) {
@@ -68,6 +69,7 @@ void TileItemView::SetIcon(const gfx::ImageSkia& icon) {
void TileItemView::SetTitle(const base::string16& title) {
title_->SetText(title);
+ SetAccessibleName(title);
}
void TileItemView::StateChanged() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698