forked from Igalia/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes in app.window and app.runtime to support lock screen note taking
Implements changes in app.window and app.runtime to support launching app window for handling actions on lock screen. Currently, this is restricted to note taking action (at time of writing, no other actions exist), which will be restricted to a whitelisted apps on lock screen (guarded by lockScreen permsission). Changes to APIs: chrome.app.runtime: * add isLockScreenAction to LaunchData.AcionData, which will be set when the launch event is fired in order to handle the action on lock screen (and it will be fired to the app running in lock screen context - script context with reduced access to chrome APIs) chrome.app.window: * add lockScreenAction app window option. When passer to window.create, if set, the option will indicate that the app window is being launched to handle an action that should be handled on lock screen. The created app window would be added to ash window container visible on the Chrome OS lock screen (LockActionHandlerContainer). This option will be restricted to apps running in lock screen context with lockScreen permission (whitelisted to Keep app). Note that creation of app windows visible on lock screen will succeed only if user session is locked and the action in question was requested from the lock screen - this will be determined by delegating to AppWindowClient (which already creates app window instances). This CL adds a CreateAppWindowForLockScreenAction method to the client which will use lock_screen_apps:StateController to verify that the app was asked to handle the lock screen action before creating the app window. If created, the lock screen window is registered with the lock_screen_apps::StateController so lock screen apps state can be updated depending on the window state (e.g. exit active state when the app window is closed), and vice-versa. Tests for launching lock screen note taking action to be added in: https://codereview.chromium.org/2927303003 BUG=715781 Review-Url: https://codereview.chromium.org/2934513003 Cr-Commit-Position: refs/heads/master@{#481417}
- Loading branch information
tbarzic
authored and
Commit Bot
committed
Jun 22, 2017
1 parent
1b0f374
commit 8bf50fc
Showing
17 changed files
with
649 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.