OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_TYPES_H_ | 5 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_TYPES_H_ |
6 #define UI_MESSAGE_CENTER_NOTIFICATION_TYPES_H_ | 6 #define UI_MESSAGE_CENTER_NOTIFICATION_TYPES_H_ |
7 | 7 |
8 #include "ui/message_center/message_center_export.h" | 8 #include "ui/message_center/message_center_export.h" |
9 | 9 |
10 namespace message_center { | 10 namespace message_center { |
(...skipping 12 matching lines...) Expand all Loading... | |
23 MESSAGE_CENTER_EXPORT extern const char kItemMessageKey[]; | 23 MESSAGE_CENTER_EXPORT extern const char kItemMessageKey[]; |
24 // This key should not be used by the extension API handler. It's not allowed | 24 // This key should not be used by the extension API handler. It's not allowed |
25 // to use it there, it's used to cancel timeout for webkit notifications. | 25 // to use it there, it's used to cancel timeout for webkit notifications. |
26 MESSAGE_CENTER_EXPORT extern const char kPrivateNeverTimeoutKey[]; | 26 MESSAGE_CENTER_EXPORT extern const char kPrivateNeverTimeoutKey[]; |
27 | 27 |
28 enum NotificationType { | 28 enum NotificationType { |
29 NOTIFICATION_TYPE_SIMPLE, | 29 NOTIFICATION_TYPE_SIMPLE, |
30 NOTIFICATION_TYPE_BASE_FORMAT, | 30 NOTIFICATION_TYPE_BASE_FORMAT, |
31 NOTIFICATION_TYPE_IMAGE, | 31 NOTIFICATION_TYPE_IMAGE, |
32 NOTIFICATION_TYPE_MULTIPLE, | 32 NOTIFICATION_TYPE_MULTIPLE, |
33 NOTIFICATION_TYPE_PROGRESS // Notification with progress bar. | 33 // Notification with progress bar. |
34 NOTIFICATION_TYPE_PROGRESS, | |
35 // Notification with indeterminate progress bar. | |
36 NOTIFICATION_TYPE_PROGRESS_INDETERMINATE, | |
Jun Mukai
2015/11/24 17:51:11
Based on my comment in NotificationView, I think y
yoshiki
2015/11/25 15:14:28
I misunderstood, you did't mean to add a flag cont
| |
34 }; | 37 }; |
35 | 38 |
36 enum NotificationPriority { | 39 enum NotificationPriority { |
37 MIN_PRIORITY = -2, | 40 MIN_PRIORITY = -2, |
38 LOW_PRIORITY = -1, | 41 LOW_PRIORITY = -1, |
39 DEFAULT_PRIORITY = 0, | 42 DEFAULT_PRIORITY = 0, |
40 HIGH_PRIORITY = 1, | 43 HIGH_PRIORITY = 1, |
41 MAX_PRIORITY = 2, | 44 MAX_PRIORITY = 2, |
42 | 45 |
43 // Top priority for system-level notifications.. This can't be set from | 46 // Top priority for system-level notifications.. This can't be set from |
44 // kPriorityKey, instead you have to call SetSystemPriority() of | 47 // kPriorityKey, instead you have to call SetSystemPriority() of |
45 // Notification object. | 48 // Notification object. |
46 SYSTEM_PRIORITY = 3, | 49 SYSTEM_PRIORITY = 3, |
47 }; | 50 }; |
48 | 51 |
49 } // namespace message_center | 52 } // namespace message_center |
50 | 53 |
51 #endif // UI_MESSAGE_CENTER_NOTIFICATION_TYPES_H_ | 54 #endif // UI_MESSAGE_CENTER_NOTIFICATION_TYPES_H_ |
OLD | NEW |