1 // Copyright 2017 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_SHUTDOWN_REASON_H_
6 #define ASH_SHUTDOWN_REASON_H_
10 enum class ShutdownReason {
11 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 ARC_POWER_BUTTON, // ARC power button is invoked.
17 // Returns a string describing |reason|.
18 const char* ShutdownReasonToString(ShutdownReason reason);
22 #endif // ASH_SHUTDOWN_REASON_H_