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

Unified Diff: ui/app_list/apps_grid_view.cc

Issue 10908126: app_list: Fix accessibility regression in apps grid. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/apps_grid_view.cc
diff --git a/ui/app_list/apps_grid_view.cc b/ui/app_list/apps_grid_view.cc
index dec5a53ad98690779776cc73cd3830b6f20bcfa9..a5c9b727e1f1af30e5ade7092a89971d9b8975bd 100644
--- a/ui/app_list/apps_grid_view.cc
+++ b/ui/app_list/apps_grid_view.cc
@@ -10,6 +10,7 @@
#include "ui/app_list/pagination_model.h"
#include "ui/base/events/event.h"
#include "ui/views/border.h"
+#include "ui/views/widget/widget.h"
namespace {
@@ -295,7 +296,10 @@ void AppsGridView::SetSelectedItemByIndex(int index) {
selected_item_index_ = -1;
} else {
selected_item_index_ = index;
- GetItemViewAtIndex(selected_item_index_)->SchedulePaint();
+ AppListItemView* selected_view = GetItemViewAtIndex(selected_item_index_);
+ selected_view->SchedulePaint();
+ GetWidget()->NotifyAccessibilityEvent(
+ selected_view, ui::AccessibilityTypes::EVENT_FOCUS, true);
if (tiles_per_page()) {
pagination_model_->SelectPage(selected_item_index_ / tiles_per_page(),
« 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