cros: update start page view arrow key focus

Desktop / Chromium - Weidong Guo [chromium.org] - 7 August 2017 21:16 EDT

Changes: 1. Make the left and right arrow keys behavior the same as shift+tab key and tab key. 2. Implement the behavior of up and down arrow key. 3. Separate the key handling of start page view in fullscreen app list into one single function for readability. 4. add unit tests for arrow key focus movement in start page view and search box view.

Specs: https://screenshot.googleplex.com/BszbVX5GHKa

BUG=741015 TEST=AppListViewFullscreenTest.*

Change-Id: If19371109a350f05d6a6cf8a78bc059f15905aa5 Reviewed-on: https://chromium-review.googlesource.com/604467 Commit-Queue: Weidong Guo

deec7ef cros: update start page view arrow key focus
ui/app_list/views/app_list_view_unittest.cc | 232 ++++++++++++++++++++------
ui/app_list/views/contents_view.cc | 8 +-
ui/app_list/views/search_box_view.cc | 50 +++++-
ui/app_list/views/search_box_view.h | 7 +
ui/app_list/views/search_box_view_unittest.cc | 8 +-
ui/app_list/views/start_page_view.cc | 167 +++++++++++++-----
ui/app_list/views/start_page_view.h | 3 +
7 files changed, 377 insertions(+), 98 deletions(-)

Upstream: git.chromium.org


  • Share