OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_NOTIFICATIONS_NOTIFICATION_TYPES_H_ | |
6 #define UI_NOTIFICATIONS_NOTIFICATION_TYPES_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "ui/base/ui_export.h" | |
11 | |
12 namespace ui { | |
13 | |
14 namespace notifications { | |
15 | |
16 // Keys for optional fields in Notification. | |
17 UI_EXPORT extern const char kPriorityKey[]; | |
18 UI_EXPORT extern const char kTimestampKey[]; | |
19 UI_EXPORT extern const char kUnreadCountKey[]; | |
20 UI_EXPORT extern const char kButtonOneTitleKey[]; | |
21 UI_EXPORT extern const char kButtonOneIconUrlKey[]; | |
22 UI_EXPORT extern const char kButtonTwoTitleKey[]; | |
23 UI_EXPORT extern const char kButtonTwoIconUrlKey[]; | |
24 UI_EXPORT extern const char kExpandedMessageKey[]; | |
25 UI_EXPORT extern const char kImageUrlKey[]; | |
26 UI_EXPORT extern const char kItemsKey[]; | |
27 UI_EXPORT extern const char kItemTitleKey[]; | |
28 UI_EXPORT extern const char kItemMessageKey[]; | |
29 | |
30 enum NotificationType { | |
31 NOTIFICATION_TYPE_SIMPLE, | |
32 NOTIFICATION_TYPE_BASE_FORMAT, | |
33 NOTIFICATION_TYPE_IMAGE, | |
34 NOTIFICATION_TYPE_MULTIPLE, | |
35 }; | |
36 | |
37 enum NotificationPriority { | |
38 MIN_PRIORITY = -2, | |
39 LOW_PRIORITY = -1, | |
40 DEFAULT_PRIORITY = 0, | |
41 HIGH_PRIORITY = 1, | |
42 MAX_PRIORITY = 2, | |
43 }; | |
44 | |
45 } // namespace notifications | |
46 | |
47 } // namespace ui | |
48 | |
49 #endif // UI_NOTIFICATIONS_NOTIFICATION_TYPES_H_ | |
OLD | NEW |