New entry point for new note action on lock screen

Desktop / Chromium - Toni Barzic [google.com] - 14 July 2017 23:49 EDT

The CL adds a entry point for launching note taking app on lock screen to lock screen UI. The entry point is located in top right corner of the lock screen UI, and expands to the full screen when clicked. When the animation is done -i.e. app launch button covers the whole screen, note taking app launch is requested (and unlock button shown in the login header bar).

Note that the new entry point position can conflict with the current position of version info - when note taking entry point is present, the
version info string is translated to the left - this is done by introducing a top-header-bar shown at the top of the screen (in md UI only) that contains version string and new-note-action button.

Also, introduce two more LOCK_SCREEN_APPS states in login UI -AVAILABLE - state set when new note action is available on lock screen (and new-note-action button should be displayed) LAUNCH_REQUESTED - transient state for requesting new note action launch

Bug: 737067 Change-Id: Ie13b6bbc6920269d3721f6680eceb641f3d5c4b9 Reviewed-on: https://chromium-review.googlesource.com/568393

d00ff7c New entry point for new note action on lock screen
chrome/app/chromeos_strings.grdp | 3 +
.../chromeos/lock_screen_apps/state_controller.cc | 8 +-
.../lock_screen_apps/state_controller_unittest.cc | 18 +++
.../browser/resources/chromeos/login/header_bar.js | 3 +-
.../resources/chromeos/login/md_header_bar.css | 1 +
.../resources/chromeos/login/md_header_bar.js | 3 +-
chrome/browser/resources/chromeos/login/md_lock.js | 1 +
.../browser/resources/chromeos/login/md_login.js | 1 +
.../resources/chromeos/login/md_login_shared.html | 1 +
.../resources/chromeos/login/md_login_shared.js | 1 +
.../chromeos/login/md_screen_container.html | 2 +-
.../resources/chromeos/login/md_top_header_bar.css | 103 ++++++++++++
.../chromeos/login/md_top_header_bar.html | 26 +++
.../resources/chromeos/login/md_top_header_bar.js | 180 +++++++++++++++++++++
chrome/browser/resources/chromeos/login/oobe.js | 2 +
.../webui/chromeos/login/signin_screen_handler.cc | 17 +-
.../account_picker/md_screen_account_picker.js | 1 +
ui/login/display_manager.js | 9 +-
18 files changed, 370 insertions(+), 10 deletions(-)

Upstream: git.chromium.org


  • Share