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

Side by Side Diff: ash/public/interfaces/tray_action.mojom

Issue 2870473002: Revert of Introduce ash mojo interface for lock screen action handlers (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/public/interfaces/BUILD.gn ('k') | ash/shell.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module ash.mojom;
6
7 // An action handler state.
8 enum TrayActionState {
9 // The action cannot be handled - due to no client being set, the client not
10 // supporting the action, user session not being locked etc.
11 kNotAvailable,
12
13 // The client supports the action and is not currently handling the action.
14 kAvailable,
15
16 // The client received the request for the action and it is launching the
17 // flow to handle it.
18 kLaunching,
19
20 // The client is currently handling the action.
21 kActive,
22
23 // The client is currently handling the action, but in background (e.g. the
24 // handler window for the lock screen action was moved to the background and
25 // appears underneath the login user pods).
26 kBackground,
27 };
28
29 // Used by a client (e.g. Chrome) to set up a handler for a tray action, and
30 // notify ash on the action handler's state changes. A tray action is one of
31 // predefined actions (currently only the "new note on lock screen" action is
32 // supported) that appear as an ash status area button if the client declares
33 // the action as available. Clicking the button invokes a client method that
34 // requests the action associated with the button to be handled.
35 interface TrayAction {
36 // Sets the client to be used to handle action requests.
37 // |lock_screen_note_state|: The current lock screen note action state
38 // associated with the client.
39 SetClient(TrayActionClient client, TrayActionState lock_screen_note_state);
40
41 // Updates action state for the lock screen note action. If called with no
42 // client set, the state change will not take effect until a client is set.
43 // Null client is equivalent to kNotAvailable state.
44 UpdateLockScreenNoteState(TrayActionState state);
45 };
46
47 // Used by ash to request Chrome to handle an action.
48 interface TrayActionClient {
49 // Requests a lock screen note action to be handled.
50 RequestNewLockScreenNote();
51 };
OLDNEW
« no previous file with comments | « ash/public/interfaces/BUILD.gn ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698