Add an option for restoring last note in lock screen apps to settings

Desktop / Chromium - Toni Barzic [google.com] - 10 August 2017 20:43 EDT

Adds an option to stylus settings to keep the last created note active in note taking apps on the lock screen. If the option is set, the onLaunched event sent to the note taking app on the lock screen will contain a flag to restore the action handler state in the action data object. The newly added option will be bound to a user pref, and visible only if the selected note taking app is enabled on lock screen.

Additionally, update stylus settings so the lock screen note taking options are grouped together under Lock screen notes section. The section will be visible only if the selected note taking app supports lock screen note taking.

BUG=747157

Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: I92a32cdc7eadf0f4a19cd9dd5894a11c4c5ebbd7 Reviewed-on: https://chromium-review.googlesource.com/605467 Commit-Queue: Toni Barzic

4ce7708 Add an option for restoring last note in lock screen apps to settings
.../chromeos/lock_screen_apps/app_manager_impl.cc | 4 +-
.../lock_screen_apps/app_manager_impl_unittest.cc | 44 ++++++++++++
.../lock_screen_apps/note_taking_browsertest.cc | 44 ++++++++++++
chrome/browser/chromeos/preferences.cc | 1 +
.../extensions/api/settings_private/prefs_util.cc | 2 +
.../resources/settings/device_page/stylus.html | 63 +++++++++++------
.../md_settings_localized_strings_provider.cc | 4 ++
chrome/common/pref_names.cc | 5 ++
chrome/common/pref_names.h | 1 +
.../app_launch_action_data/background.js | 19 +++++
.../app_launch_action_data/manifest.json | 16 +++++
.../test/data/webui/settings/device_page_tests.js | 82 ++++++++++++++++++++--
extensions/common/api/app_runtime.idl | 5 ++
13 files changed, 262 insertions(+), 28 deletions(-)

Upstream: git.chromium.org


  • Share