Implement the animation of opened search box

Desktop / Chromium - Weidong Guo [chromium.org] - 14 July 2017 15:03 EDT

Changes: 1. Initializes the search result page view using the same bounds, color and background border corner raidus as the search box view to make it hidden.

2. When there's query in the search box, grows the search result page in the same pace as the search box to make them look like a single growing
view.

Screenshots of animation: https://screenshot.googleplex.com/FNsJ0bE9s29 https://screenshot.googleplex.com/4ObTEsitpRK https://screenshot.googleplex.com/sHQWVWaqavH https://screenshot.googleplex.com/HVFKUXrYQhO

Specs: https://screenshot.googleplex.com/409fBM7pTO2

BUG=741051

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

6ec16c8 Implement the animation of opened search box
ui/app_list/app_list_constants.cc | 6 ++
ui/app_list/app_list_constants.h | 2 +
ui/app_list/views/app_list_page.h | 1 +
ui/app_list/views/contents_view.cc | 7 +-
ui/app_list/views/search_box_view.cc | 104 +++++++++++++++------------
ui/app_list/views/search_box_view.h | 14 +++-
ui/app_list/views/search_result_page_view.cc | 87 +++++++++++++---------
ui/app_list/views/search_result_view.cc | 3 +-
8 files changed, 135 insertions(+), 89 deletions(-)

Upstream: git.chromium.org


  • Share