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

Issue 2848813002: Introduce ash mojo interface for lock screen action handlers (Closed)

Created:
3 years, 7 months ago by tbarzic
Modified:
3 years, 7 months ago
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, tfarina, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, oshima+watch_chromium.org, kalyank, darin (slow to review), davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce ash mojo interface for lock screen action handlers This is part of support for note taking apps on lock screen. This is the interface that will enable ash to observe state of apps that can/are allowed to handle actions (currently, only "new note" action is supported) on lock screen and update it's state accordingly. For example, this interface will be used for tray icon for launching new note. The icon will be exposed only if the action handler controller is in the state indicating that there is an app registered for handling new note action on lock screen. Clicking the icon would issue a request to action handler to handle the action (thus adding RequestHandleAction interface). BUG=716081 Review-Url: https://codereview.chromium.org/2848813002 Cr-Original-Commit-Position: refs/heads/master@{#469870} Committed: https://chromium.googlesource.com/chromium/src/+/033f267aec04cedfa513cef1880e9dc81dc83648 Review-Url: https://codereview.chromium.org/2848813002 Cr-Commit-Position: refs/heads/master@{#470115} Committed: https://chromium.googlesource.com/chromium/src/+/c78da1ff9f01a79c89aa715e2dd42ff0dfde0cec

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 2

Patch Set 7 : rename to TrayActionHandler #

Patch Set 8 : . #

Total comments: 49

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Total comments: 14

Patch Set 13 : . #

Patch Set 14 : . #

Patch Set 15 : . #

Patch Set 16 : . #

Total comments: 53

Patch Set 17 : . #

Patch Set 18 : . #

Patch Set 19 : . #

Total comments: 10

Patch Set 20 : . #

Patch Set 21 : Fix outdated comment #

Patch Set 22 : add ASH_EXPORTS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+752 lines, -136 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M ash/mojo_interface_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -0 lines 0 comments Download
M ash/mus/manifest.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A ash/public/interfaces/tray_action.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +51 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
A ash/tray_action/tray_action.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +71 lines, -0 lines 0 comments Download
A ash/tray_action/tray_action.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +84 lines, -0 lines 0 comments Download
A ash/tray_action/tray_action_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +23 lines, -0 lines 0 comments Download
A ash/tray_action/tray_action_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +226 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +9 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 12 13 14 15 16 17 18 19 20 2 chunks +45 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/lock_screen_apps/state_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +73 lines, -39 lines 0 comments Download
M chrome/browser/chromeos/lock_screen_apps/state_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +140 lines, -39 lines 0 comments Download
M chrome/browser/chromeos/lock_screen_apps/state_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -4 lines 0 comments Download
D chrome/browser/chromeos/lock_screen_apps/types.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -34 lines 0 comments Download

Messages

Total messages: 82 (53 generated)
tbarzic
NOTE: this depends on https://codereview.chromium.org/2839383002/
3 years, 7 months ago (2017-05-02 02:46:22 UTC) #11
James Cook
Is there a design doc or mocks for this feature? Also, I think xiyuan should ...
3 years, 7 months ago (2017-05-02 15:43:38 UTC) #13
tbarzic
I linked docs in the issue tracker. https://codereview.chromium.org/2848813002/diff/100001/ash/public/interfaces/action_handler.mojom File ash/public/interfaces/action_handler.mojom (right): https://codereview.chromium.org/2848813002/diff/100001/ash/public/interfaces/action_handler.mojom#newcode32 ash/public/interfaces/action_handler.mojom:32: interface ActionHandlerStateController ...
3 years, 7 months ago (2017-05-02 17:05:54 UTC) #14
xiyuan
On 2017/05/02 17:05:54, tbarzic wrote: > I linked docs in the issue tracker. > > ...
3 years, 7 months ago (2017-05-02 17:46:04 UTC) #15
James Cook
Do you want me to start looking at this now, or should I wait for ...
3 years, 7 months ago (2017-05-03 00:19:10 UTC) #16
tbarzic
On 2017/05/03 00:19:10, James Cook wrote: > Do you want me to start looking at ...
3 years, 7 months ago (2017-05-03 00:42:42 UTC) #17
tbarzic
I renamed the interface to TrayActionHandler
3 years, 7 months ago (2017-05-03 19:58:12 UTC) #18
James Cook
Sorry for all the comments - we're still sorting out the preferred style for new ...
3 years, 7 months ago (2017-05-03 23:31:52 UTC) #19
James Cook
Oh, and at a high level... Unless there are specific UX plans for lock screen ...
3 years, 7 months ago (2017-05-03 23:33:12 UTC) #20
tbarzic
https://codereview.chromium.org/2848813002/diff/140001/ash/public/interfaces/tray_action_handler.mojom File ash/public/interfaces/tray_action_handler.mojom (right): https://codereview.chromium.org/2848813002/diff/140001/ash/public/interfaces/tray_action_handler.mojom#newcode8 ash/public/interfaces/tray_action_handler.mojom:8: enum TrayActionHandlerAction { kNewLockScreenNote, }; On 2017/05/03 23:31:50, James ...
3 years, 7 months ago (2017-05-04 20:58:31 UTC) #31
xiyuan
https://codereview.chromium.org/2848813002/diff/220001/ash/public/interfaces/tray_action.mojom File ash/public/interfaces/tray_action.mojom (right): https://codereview.chromium.org/2848813002/diff/220001/ash/public/interfaces/tray_action.mojom#newcode36 ash/public/interfaces/tray_action.mojom:36: SetClient(TrayActionClient action_handler); nit: wrong intent https://codereview.chromium.org/2848813002/diff/220001/ash/tray_action/tray_action.cc File ash/tray_action/tray_action.cc (right): ...
3 years, 7 months ago (2017-05-04 21:19:16 UTC) #34
tbarzic
https://codereview.chromium.org/2848813002/diff/220001/ash/public/interfaces/tray_action.mojom File ash/public/interfaces/tray_action.mojom (right): https://codereview.chromium.org/2848813002/diff/220001/ash/public/interfaces/tray_action.mojom#newcode36 ash/public/interfaces/tray_action.mojom:36: SetClient(TrayActionClient action_handler); On 2017/05/04 21:19:16, xiyuan wrote: > nit: ...
3 years, 7 months ago (2017-05-04 23:27:18 UTC) #36
James Cook
https://codereview.chromium.org/2848813002/diff/300001/ash/public/interfaces/tray_action.mojom File ash/public/interfaces/tray_action.mojom (right): https://codereview.chromium.org/2848813002/diff/300001/ash/public/interfaces/tray_action.mojom#newcode28 ash/public/interfaces/tray_action.mojom:28: // surfeace user sign-in UI). nit: surface Or rewrite ...
3 years, 7 months ago (2017-05-05 02:55:46 UTC) #42
tbarzic
https://codereview.chromium.org/2848813002/diff/300001/ash/public/interfaces/tray_action.mojom File ash/public/interfaces/tray_action.mojom (right): https://codereview.chromium.org/2848813002/diff/300001/ash/public/interfaces/tray_action.mojom#newcode28 ash/public/interfaces/tray_action.mojom:28: // surfeace user sign-in UI). On 2017/05/05 02:55:44, James ...
3 years, 7 months ago (2017-05-05 04:46:27 UTC) #49
xiyuan
lgtm
3 years, 7 months ago (2017-05-05 15:02:03 UTC) #52
James Cook
LGTM. Thanks for doing this with mojo - it will make my life much easier ...
3 years, 7 months ago (2017-05-05 17:22:47 UTC) #53
tbarzic
https://codereview.chromium.org/2848813002/diff/300001/ash/tray_action/tray_action_unittest.cc File ash/tray_action/tray_action_unittest.cc (right): https://codereview.chromium.org/2848813002/diff/300001/ash/tray_action/tray_action_unittest.cc#newcode251 ash/tray_action/tray_action_unittest.cc:251: EXPECT_EQ(1, action_client.action_requests_count()); On 2017/05/05 17:22:46, James Cook (OOO) wrote: ...
3 years, 7 months ago (2017-05-05 17:51:18 UTC) #55
James Cook
Still LGTM.
3 years, 7 months ago (2017-05-05 17:54:03 UTC) #57
tbarzic
+tsepez for ash/public/interfaces/tray_action.mojom
3 years, 7 months ago (2017-05-05 17:54:13 UTC) #59
Tom Sepez
lgtm
3 years, 7 months ago (2017-05-05 21:01:14 UTC) #62
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/2848813002/400001
3 years, 7 months ago (2017-05-06 00:48:29 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/333499)
3 years, 7 months ago (2017-05-06 01:26:17 UTC) #67
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/2848813002/400001
3 years, 7 months ago (2017-05-06 01:32:18 UTC) #69
commit-bot: I haz the power
Committed patchset #21 (id:400001) as https://chromium.googlesource.com/chromium/src/+/033f267aec04cedfa513cef1880e9dc81dc83648
3 years, 7 months ago (2017-05-06 19:11:00 UTC) #72
findit-for-me
A revert of this CL (patchset #21 id:400001) has been created in https://codereview.chromium.org/2870473002/ by findit-for-me@appspot.gserviceaccount.com. ...
3 years, 7 months ago (2017-05-06 20:09:31 UTC) #73
tbarzic
I added ASH_EXPORTs in patchset 22 - hopefully that should fix link errors in ash_unittests ...
3 years, 7 months ago (2017-05-07 03:57:58 UTC) #75
James Cook
LGTM
3 years, 7 months ago (2017-05-08 16:14:14 UTC) #76
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/2848813002/420001
3 years, 7 months ago (2017-05-08 19:02:06 UTC) #79
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 20:46:41 UTC) #82
Message was sent while issue was closed.
Committed patchset #22 (id:420001) as
https://chromium.googlesource.com/chromium/src/+/c78da1ff9f01a79c89aa715e2dd4...

Powered by Google App Engine
This is Rietveld 408576698