summaryrefslogtreecommitdiffstats
path: root/ash/system/system_notifier.h
diff options
context:
space:
mode:
authormukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-12 01:52:21 +0000
committermukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-12 01:52:21 +0000
commitb78d79a574bf2171b3d55b0fcb0274b99b6b0518 (patch)
tree546b6c5e081928295985973e7be2543a2b69437c /ash/system/system_notifier.h
parent85ac048edc06d358ae5562aaf91e07a44db924a7 (diff)
downloadchromium_src-b78d79a574bf2171b3d55b0fcb0274b99b6b0518.zip
chromium_src-b78d79a574bf2171b3d55b0fcb0274b99b6b0518.tar.gz
chromium_src-b78d79a574bf2171b3d55b0fcb0274b99b6b0518.tar.bz2
Introduces NotificationBlocker.
This CL replaces the existing blocking code by the new notification blocker implementations. The new implementation detects the current status more precisely, and each platform can implement different blocking behaviors. BUG=256404, 260060 TEST=covered by new tests R=dewittj@chromium.org, stevenjb@chromium.org Review URL: https://chromiumcodereview.appspot.com/23694021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222698 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system/system_notifier.h')
-rw-r--r--ash/system/system_notifier.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ash/system/system_notifier.h b/ash/system/system_notifier.h
index 1680a1b..3d823c8 100644
--- a/ash/system/system_notifier.h
+++ b/ash/system/system_notifier.h
@@ -8,8 +8,10 @@
#include <string>
#include "ash/ash_export.h"
+#include "ui/message_center/notifier_settings.h"
namespace ash {
+namespace system_notifier {
enum AshSystemComponentNotifierType {
NOTIFIER_NO_SYSTEM_COMPONENT = -1,
@@ -33,6 +35,13 @@ enum AshSystemComponentNotifierType {
ASH_EXPORT std::string SystemComponentTypeToString(
AshSystemComponentNotifierType type);
+// Returns true if notifications from |notifier_id| should always appear as
+// popups. "Always appear" means the popups should appear even in login screen,
+// lock screen, or fullscreen state.
+ASH_EXPORT bool ShouldAlwaysShowPopups(
+ const message_center::NotifierId& notifier_id);
+
+} // namespace system_notifier
} // namespace ash
#endif // ASH_SYSTEM_SYSTEM_NOTIFIER_H_