shutdown_reason.h 713 B

12345678910111213141516171819202122
  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. #ifndef ASH_SHUTDOWN_REASON_H_
  5. #define ASH_SHUTDOWN_REASON_H_
  6. namespace ash {
  7. enum class ShutdownReason {
  8. POWER_BUTTON, // User pressed the (physical) power button.
  9. LOGIN_SHUT_DOWN_BUTTON, // User pressed the login screen shut down button.
  10. TRAY_SHUT_DOWN_BUTTON, // User pressed the tray shut down button.
  11. ARC_POWER_BUTTON, // ARC power button is invoked.
  12. };
  13. // Returns a string describing |reason|.
  14. const char* ShutdownReasonToString(ShutdownReason reason);
  15. } // namespace ash
  16. #endif // ASH_SHUTDOWN_REASON_H_