summaryrefslogtreecommitdiffstats
path: root/mash/shell/public/interfaces/shell.mojom
blob: 77d1e80a12ba75b422fd91f55693f26cf73bd7f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module mash.shell.mojom;

interface ScreenlockStateListener {
  // This method is called when the listener is initially added with the current
  // lock state, and subsequently whenever the lock state changes.
  ScreenlockStateChanged(bool locked);
};

interface Shell {
  Logout();
  SwitchUser();
  LockScreen();
  UnlockScreen();
  AddScreenlockStateListener(ScreenlockStateListener listener);
};