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

Unified Diff: ash/public/interfaces/session_controller.mojom

Issue 2923083002: chromeos: Convert system tray session length limit to mojo (Closed)
Patch Set: rebase Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/BUILD.gn ('k') | ash/session/session_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/public/interfaces/session_controller.mojom
diff --git a/ash/public/interfaces/session_controller.mojom b/ash/public/interfaces/session_controller.mojom
index 4e902cda76cd007c288b7cd314fcb328e7188249..7b8273dde7912bdb8c13e02bd9a7c5ec6203f83b 100644
--- a/ash/public/interfaces/session_controller.mojom
+++ b/ash/public/interfaces/session_controller.mojom
@@ -6,6 +6,7 @@ module ash.mojom;
import "ash/public/interfaces/user_info.mojom";
import "components/signin/public/interfaces/account_id.mojom";
+import "mojo/common/time.mojom";
// Matches session_manager::SessionState.
enum SessionState {
@@ -141,6 +142,15 @@ interface SessionController {
// Notifies that chrome is terminating.
NotifyChromeTerminating();
+
+ // Adds a countdown timer to the system tray menu and creates or updates a
+ // notification saying the session length is limited (e.g. a public session in
+ // a library). Setting |length_limit| to zero removes the notification.
+ // NOTE: Chrome enforces the limit, not ash. Ash could enforce it if local
+ // state prefs and user activity monitoring were available under mustash.
+ // http://crbug.com/729808
+ SetSessionLengthLimit(mojo.common.mojom.TimeDelta length_limit,
+ mojo.common.mojom.TimeTicks start_time);
};
// Interface for ash to request session service from its client (e.g. Chrome).
« no previous file with comments | « ash/BUILD.gn ('k') | ash/session/session_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698