blob: 62170a57b44043b2bd955e2d629957f47567dde9 [file] [log] [blame]
// Copyright 2017 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.
#ifndef ASH_SHUTDOWN_REASON_H_
#define ASH_SHUTDOWN_REASON_H_
namespace ash {
enum class ShutdownReason {
POWER_BUTTON, // User pressed the (physical) power button.
LOGIN_SHUT_DOWN_BUTTON, // User pressed the login screen shut down button.
TRAY_SHUT_DOWN_BUTTON, // User pressed the tray shut down button.
};
// Returns a string describing |reason|.
const char* ShutdownReasonToString(ShutdownReason reason);
} // namespace ash
#endif // ASH_SHUTDOWN_REASON_H_