Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(930)

Side by Side Diff: ui/message_center/notification_types.h

Issue 1979583003: Support notifications with custom content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@messageview-close-button
Patch Set: fix mac build, attempt 2 Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
26 MESSAGE_CENTER_EXPORT extern const char kPrivateNeverTimeoutKey[]; 26 MESSAGE_CENTER_EXPORT extern const char kPrivateNeverTimeoutKey[];
27 27
28 // Notification types. Note that the values in this enumeration are being 28 // Notification types. Note that the values in this enumeration are being
29 // recoded in a histogram, updates should not change the entries' values. 29 // recoded in a histogram, updates should not change the entries' values.
30 enum NotificationType { 30 enum NotificationType {
31 NOTIFICATION_TYPE_SIMPLE = 0, 31 NOTIFICATION_TYPE_SIMPLE = 0,
32 NOTIFICATION_TYPE_BASE_FORMAT = 1, 32 NOTIFICATION_TYPE_BASE_FORMAT = 1,
33 NOTIFICATION_TYPE_IMAGE = 2, 33 NOTIFICATION_TYPE_IMAGE = 2,
34 NOTIFICATION_TYPE_MULTIPLE = 3, 34 NOTIFICATION_TYPE_MULTIPLE = 3,
35 NOTIFICATION_TYPE_PROGRESS = 4, // Notification with progress bar. 35 NOTIFICATION_TYPE_PROGRESS = 4, // Notification with progress bar.
36 NOTIFICATION_TYPE_CUSTOM = 5,
36 37
37 // Add new values before this line. 38 // Add new values before this line.
38 NOTIFICATION_TYPE_LAST = NOTIFICATION_TYPE_PROGRESS 39 NOTIFICATION_TYPE_LAST = NOTIFICATION_TYPE_PROGRESS
39 }; 40 };
40 41
41 enum NotificationPriority { 42 enum NotificationPriority {
42 MIN_PRIORITY = -2, 43 MIN_PRIORITY = -2,
43 LOW_PRIORITY = -1, 44 LOW_PRIORITY = -1,
44 DEFAULT_PRIORITY = 0, 45 DEFAULT_PRIORITY = 0,
45 HIGH_PRIORITY = 1, 46 HIGH_PRIORITY = 1,
46 MAX_PRIORITY = 2, 47 MAX_PRIORITY = 2,
47 48
48 // Top priority for system-level notifications.. This can't be set from 49 // Top priority for system-level notifications.. This can't be set from
49 // kPriorityKey, instead you have to call SetSystemPriority() of 50 // kPriorityKey, instead you have to call SetSystemPriority() of
50 // Notification object. 51 // Notification object.
51 SYSTEM_PRIORITY = 3, 52 SYSTEM_PRIORITY = 3,
52 }; 53 };
53 54
54 } // namespace message_center 55 } // namespace message_center
55 56
56 #endif // UI_MESSAGE_CENTER_NOTIFICATION_TYPES_H_ 57 #endif // UI_MESSAGE_CENTER_NOTIFICATION_TYPES_H_
OLDNEW
« no previous file with comments | « ui/message_center/notification_delegate_views.cc ('k') | ui/message_center/views/custom_notification_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698