- add sources.
[platform/framework/web/crosswalk.git] / src / ash / system / system_notifier.h
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.
4
5 #ifndef ASH_SYSTEM_SYSTEM_NOTIFIER_H_
6 #define ASH_SYSTEM_SYSTEM_NOTIFIER_H_
7
8 #include <string>
9
10 #include "ash/ash_export.h"
11 #include "ui/message_center/notifier_settings.h"
12
13 namespace ash {
14 namespace system_notifier {
15
16 enum AshSystemComponentNotifierType {
17   NOTIFIER_NO_SYSTEM_COMPONENT = -1,
18
19   // Alphabetical order.
20   NOTIFIER_DISPLAY,
21   NOTIFIER_DISPLAY_RESOLUTION_CHANGE,
22   NOTIFIER_DISPLAY_ERROR,
23   NOTIFIER_INPUT_METHOD,
24   NOTIFIER_LOCALE,
25   NOTIFIER_LOCALLY_MANAGED_USER,
26   NOTIFIER_NETWORK,
27   NOTIFIER_NETWORK_ERROR,
28   NOTIFIER_SCREENSHOT,
29   NOTIFIER_SCREEN_CAPTURE,
30   NOTIFIER_SCREEN_SHARE,
31   NOTIFIER_SESSION_LENGTH_TIMEOUT,
32   NOTIFIER_POWER,
33 };
34
35 ASH_EXPORT std::string SystemComponentTypeToString(
36     AshSystemComponentNotifierType type);
37
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);
43
44 }  // namespace system_notifier
45 }  // namespace ash
46
47 #endif  // ASH_SYSTEM_SYSTEM_NOTIFIER_H_