blob: 62170a57b44043b2bd955e2d629957f47567dde9 [file] [log] [blame]
Lann Martin4fd794c32017-06-30 17:51:411// 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#ifndef ASH_SHUTDOWN_REASON_H_
6#define ASH_SHUTDOWN_REASON_H_
7
8namespace ash {
9
10enum class ShutdownReason {
Lann Martin4fd794c32017-06-30 17:51:4111 POWER_BUTTON, // User pressed the (physical) power button.
12 LOGIN_SHUT_DOWN_BUTTON, // User pressed the login screen shut down button.
13 TRAY_SHUT_DOWN_BUTTON, // User pressed the tray shut down button.
14};
15
Daniel Eratf86314fc2018-02-23 21:03:2716// Returns a string describing |reason|.
17const char* ShutdownReasonToString(ShutdownReason reason);
18
Lann Martin4fd794c32017-06-30 17:51:4119} // namespace ash
20
21#endif // ASH_SHUTDOWN_REASON_H_