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

Unified Diff: ash/app_list/app_list_item_view.cc

Issue 10161021: Revert 133408 - Add accessibility info to app list items and allow them to be focused. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | « ash/app_list/app_list_item_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/app_list/app_list_item_view.cc
===================================================================
--- ash/app_list/app_list_item_view.cc (revision 133408)
+++ ash/app_list/app_list_item_view.cc (working copy)
@@ -13,7 +13,6 @@
#include "base/synchronization/cancellation_flag.h"
#include "base/threading/worker_pool.h"
#include "base/utf_string_conversions.h"
-#include "ui/base/accessibility/accessible_view_state.h"
#include "ui/base/animation/throb_animation.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
@@ -204,7 +203,6 @@
set_context_menu_controller(this);
set_request_focus_on_press(false);
- set_focusable(true);
}
AppListItemView::~AppListItemView() {
@@ -253,7 +251,6 @@
if (selected == selected_)
return;
- RequestFocus();
selected_ = selected;
SchedulePaint();
}
@@ -363,11 +360,6 @@
}
}
-void AppListItemView::GetAccessibleState(ui::AccessibleViewState* state) {
- state->role = ui::AccessibilityTypes::ROLE_PUSHBUTTON;
- state->name = UTF8ToUTF16(model_->title());
-}
-
void AppListItemView::ShowContextMenuForView(views::View* source,
const gfx::Point& point) {
ui::MenuModel* menu_model = model_->GetContextMenuModel();
« no previous file with comments | « ash/app_list/app_list_item_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698