Lann Martin | 4fd794c3 | 2017-06-30 17:51:41 | [diff] [blame] | 1 | // 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 | |
| 8 | namespace ash { |
| 9 | |
| 10 | enum class ShutdownReason { |
Lann Martin | 4fd794c3 | 2017-06-30 17:51:41 | [diff] [blame] | 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 | }; |
| 15 | |
Daniel Erat | f86314fc | 2018-02-23 21:03:27 | [diff] [blame] | 16 | // Returns a string describing |reason|. |
| 17 | const char* ShutdownReasonToString(ShutdownReason reason); |
| 18 | |
Lann Martin | 4fd794c3 | 2017-06-30 17:51:41 | [diff] [blame] | 19 | } // namespace ash |
| 20 | |
| 21 | #endif // ASH_SHUTDOWN_REASON_H_ |