1 // Copyright 2013 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.
5 #ifndef ASH_SYSTEM_SYSTEM_NOTIFIER_H_
6 #define ASH_SYSTEM_SYSTEM_NOTIFIER_H_
10 #include "ash/ash_export.h"
11 #include "ui/message_center/notifier_settings.h"
14 namespace system_notifier {
16 enum AshSystemComponentNotifierType {
17 NOTIFIER_NO_SYSTEM_COMPONENT = -1,
19 // Alphabetical order.
21 NOTIFIER_DISPLAY_RESOLUTION_CHANGE,
22 NOTIFIER_DISPLAY_ERROR,
23 NOTIFIER_INPUT_METHOD,
25 NOTIFIER_LOCALLY_MANAGED_USER,
27 NOTIFIER_NETWORK_ERROR,
29 NOTIFIER_SCREEN_CAPTURE,
30 NOTIFIER_SCREEN_SHARE,
31 NOTIFIER_SESSION_LENGTH_TIMEOUT,
35 ASH_EXPORT std::string SystemComponentTypeToString(
36 AshSystemComponentNotifierType type);
38 // Returns true if notifications from |notifier_id| should always appear as
39 // popups. "Always appear" means the popups should appear even in login screen,
40 // lock screen, or fullscreen state.
41 ASH_EXPORT bool ShouldAlwaysShowPopups(
42 const message_center::NotifierId& notifier_id);
44 } // namespace system_notifier
47 #endif // ASH_SYSTEM_SYSTEM_NOTIFIER_H_