Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Issue 2934513003: Changes in app.window and app.runtime to support lock screen note taking (Closed)

Created:
3 years, 6 months ago by tbarzic
Modified:
3 years, 6 months ago
Reviewers:
Devlin, benwells
CC:
chromium-reviews, extensions-reviews_chromium.org, tfarina, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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} Committed: https://chromium.googlesource.com/chromium/src/+/8bf50fca8ae311bde0cf49734344a2d0f9ac0f68

Patch Set 1 #

Patch Set 2 : split out browsertests #

Total comments: 20

Patch Set 3 : feedback #

Patch Set 4 : . #

Total comments: 14

Patch Set 5 : . #

Total comments: 4

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Total comments: 2

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : rebase to ToT #

Patch Set 12 : . #

Patch Set 13 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+649 lines, -148 lines) Patch
M apps/launcher.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/lock_screen_apps/state_controller.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +40 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/lock_screen_apps/state_controller.cc View 1 2 3 4 5 6 chunks +60 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/lock_screen_apps/state_controller_unittest.cc View 1 2 3 4 18 chunks +407 lines, -122 lines 0 comments Download
M chrome/browser/ui/apps/chrome_app_window_client.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/apps/chrome_app_window_client.cc View 1 2 3 chunks +26 lines, -1 line 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc View 1 2 1 chunk +6 lines, -3 lines 0 comments Download
M extensions/browser/api/app_window/app_window_api.cc View 1 2 3 4 5 6 7 8 3 chunks +39 lines, -2 lines 0 comments Download
M extensions/browser/app_window/app_window.h View 3 chunks +9 lines, -0 lines 0 comments Download
M extensions/browser/app_window/app_window.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M extensions/browser/app_window/app_window_client.h View 2 chunks +10 lines, -0 lines 0 comments Download
M extensions/common/api/_api_features.json View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M extensions/common/api/app_runtime.idl View 1 chunk +12 lines, -0 lines 0 comments Download
M extensions/common/api/app_window.idl View 1 chunk +10 lines, -0 lines 0 comments Download
M extensions/components/native_app_window/native_app_window_views.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/browser/shell_app_window_client.h View 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/shell/browser/shell_app_window_client.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
tbarzic
Can you please take a look at this? If you need more context about the ...
3 years, 6 months ago (2017-06-10 01:45:18 UTC) #3
benwells
On 2017/06/10 01:45:18, tbarzic wrote: > Can you please take a look at this? > ...
3 years, 6 months ago (2017-06-13 05:44:05 UTC) #4
benwells
This looks OK to me but I don't really have any background. I noticed you ...
3 years, 6 months ago (2017-06-13 10:30:46 UTC) #5
tbarzic
as requested, adding rdevlin.cronin, who has some context for the feature. https://codereview.chromium.org/2934513003/diff/20001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): ...
3 years, 6 months ago (2017-06-13 19:18:00 UTC) #7
benwells
lgtm, but please wait for Devlin
3 years, 6 months ago (2017-06-14 00:14:09 UTC) #8
Devlin
https://codereview.chromium.org/2934513003/diff/60001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/2934513003/diff/60001/apps/launcher.cc#newcode443 apps/launcher.cc:443: NOTREACHED() << "Launching lock screen action handler requires lockScreen ...
3 years, 6 months ago (2017-06-14 19:13:47 UTC) #9
tbarzic
https://codereview.chromium.org/2934513003/diff/60001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/2934513003/diff/60001/apps/launcher.cc#newcode443 apps/launcher.cc:443: NOTREACHED() << "Launching lock screen action handler requires lockScreen ...
3 years, 6 months ago (2017-06-14 19:48:49 UTC) #10
Devlin
Mostly just curious about the missed question re runtime availability. Should we add at least ...
3 years, 6 months ago (2017-06-16 16:14:57 UTC) #11
tbarzic
I plan to land browser tests in a separate CL (see end of the cl ...
3 years, 6 months ago (2017-06-19 05:21:23 UTC) #12
tbarzic
I plan to land browser tests in a separate CL (see end of the cl ...
3 years, 6 months ago (2017-06-19 05:21:23 UTC) #13
Devlin
lgtm https://codereview.chromium.org/2934513003/diff/140001/extensions/browser/api/app_window/app_window_api.cc File extensions/browser/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/2934513003/diff/140001/extensions/browser/api/app_window/app_window_api.cc#newcode365 extensions/browser/api/app_window/app_window_api.cc:365: "The lockScreenAction option requires lock screen app context.")); ...
3 years, 6 months ago (2017-06-20 17:33:13 UTC) #14
tbarzic
https://codereview.chromium.org/2934513003/diff/140001/extensions/browser/api/app_window/app_window_api.cc File extensions/browser/api/app_window/app_window_api.cc (right): https://codereview.chromium.org/2934513003/diff/140001/extensions/browser/api/app_window/app_window_api.cc#newcode365 extensions/browser/api/app_window/app_window_api.cc:365: "The lockScreenAction option requires lock screen app context.")); On ...
3 years, 6 months ago (2017-06-20 23:46:50 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2934513003/240001
3 years, 6 months ago (2017-06-22 01:33:54 UTC) #22
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 03:02:40 UTC) #25
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/8bf50fca8ae311bde0cf49734344...

Powered by Google App Engine
This is Rietveld 408576698