Cros: Add bubbles in the views-based lockscreen

Desktop / Chromium - Sarah Hu [chromium.org] - 8 September 2017 19:10 EDT

This CL does the following: 1. Create bubble view for error bubble and user drop down menu bubble 2. Add pre-target handler for key events, mouse events and touch events to dismiss the bubble when necessary.

Bug: 719015 Change-Id: I45a0339fd1dcffb7ce143a72a72acdf4f378bcee Reviewed-on: https://chromium-review.googlesource.com/647877 Commit-Queue: Xiaoyin Hu

5e68efd Cros: Add bubbles in the views-based lockscreen
ash/BUILD.gn | 5 +
ash/ash_strings.grd | 14 ++
ash/login/ui/lock_contents_view.cc | 42 ++++-
ash/login/ui/lock_contents_view.h | 9 +
ash/login/ui/lock_screen_sanity_unittest.cc | 7 +-
ash/login/ui/login_auth_user_view.h | 2 +
ash/login/ui/login_base_bubble_view.cc | 54 ++++++
ash/login/ui/login_base_bubble_view.h | 32 ++++
ash/login/ui/login_bubble.cc | 204 +++++++++++++++++++++
ash/login/ui/login_bubble.h | 72 ++++++++
ash/login/ui/login_bubble_unittest.cc | 176 ++++++++++++++++++
ash/login/ui/login_user_view.cc | 25 ++-
ash/login/ui/login_user_view.h | 7 +-
ash/resources/vector_icons/BUILD.gn | 2 +
.../vector_icons/lock_screen_alert.1x.icon | 23 +++
ash/resources/vector_icons/lock_screen_alert.icon | 23 +++
16 files changed, 690 insertions(+), 7 deletions(-)

Upstream: git.chromium.org


  • Share