kiosk_session_service.mojom 783 B

12345678910111213141516171819202122
  1. // Copyright 2021 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. module crosapi.mojom;
  5. // Interface that allows clients to receive the notification from the Kiosk
  6. // session. Implemented by lacros-chrome.
  7. //
  8. // Next MinVersion: 2
  9. // Next ID: 2
  10. [Stable, Uuid="6dc6b5a0-b5db-4507-b0f9-688e1773226d"]
  11. interface KioskSessionService {
  12. // Starts a user initiated exit process. This method tells session manager
  13. // that chrome is signing out, which lets session manager send SIGTERM
  14. // to start actual exit process.
  15. AttemptUserExit@0();
  16. // Triggers a device restart initiated by extension runtime API
  17. [MinVersion=1]
  18. RestartDevice@1(string description) => (bool status);
  19. };