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

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

Issue 415143002: A few source code cosmetics for notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « chrome/browser/extensions/api/notifications/notifications_api.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
9 #include <string>
10
11 #include "ui/message_center/message_center_export.h" 8 #include "ui/message_center/message_center_export.h"
12 9
13 namespace message_center { 10 namespace message_center {
14 11
15 // Keys for optional fields in Notification. 12 // Keys for optional fields in Notification.
16 MESSAGE_CENTER_EXPORT extern const char kPriorityKey[]; 13 MESSAGE_CENTER_EXPORT extern const char kPriorityKey[];
17 MESSAGE_CENTER_EXPORT extern const char kTimestampKey[]; 14 MESSAGE_CENTER_EXPORT extern const char kTimestampKey[];
18 MESSAGE_CENTER_EXPORT extern const char kButtonOneTitleKey[]; 15 MESSAGE_CENTER_EXPORT extern const char kButtonOneTitleKey[];
19 MESSAGE_CENTER_EXPORT extern const char kButtonOneIconUrlKey[]; 16 MESSAGE_CENTER_EXPORT extern const char kButtonOneIconUrlKey[];
20 MESSAGE_CENTER_EXPORT extern const char kButtonTwoTitleKey[]; 17 MESSAGE_CENTER_EXPORT extern const char kButtonTwoTitleKey[];
21 MESSAGE_CENTER_EXPORT extern const char kButtonTwoIconUrlKey[]; 18 MESSAGE_CENTER_EXPORT extern const char kButtonTwoIconUrlKey[];
22 MESSAGE_CENTER_EXPORT extern const char kExpandedMessageKey[]; 19 MESSAGE_CENTER_EXPORT extern const char kExpandedMessageKey[];
23 MESSAGE_CENTER_EXPORT extern const char kImageUrlKey[]; 20 MESSAGE_CENTER_EXPORT extern const char kImageUrlKey[];
24 MESSAGE_CENTER_EXPORT extern const char kItemsKey[]; 21 MESSAGE_CENTER_EXPORT extern const char kItemsKey[];
25 MESSAGE_CENTER_EXPORT extern const char kItemTitleKey[]; 22 MESSAGE_CENTER_EXPORT extern const char kItemTitleKey[];
26 MESSAGE_CENTER_EXPORT extern const char kItemMessageKey[]; 23 MESSAGE_CENTER_EXPORT extern const char kItemMessageKey[];
27 // 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
28 // 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.
29 MESSAGE_CENTER_EXPORT extern const char kPrivateNeverTimeoutKey[]; 26 MESSAGE_CENTER_EXPORT extern const char kPrivateNeverTimeoutKey[];
30 27
31 enum NotificationType { 28 enum NotificationType {
32 NOTIFICATION_TYPE_SIMPLE, 29 NOTIFICATION_TYPE_SIMPLE,
33 NOTIFICATION_TYPE_BASE_FORMAT, 30 NOTIFICATION_TYPE_BASE_FORMAT,
34 NOTIFICATION_TYPE_IMAGE, 31 NOTIFICATION_TYPE_IMAGE,
35 NOTIFICATION_TYPE_MULTIPLE, 32 NOTIFICATION_TYPE_MULTIPLE,
36 NOTIFICATION_TYPE_PROGRESS 33 NOTIFICATION_TYPE_PROGRESS // Notification with progress bar.
37 }; 34 };
38 35
39 enum NotificationPriority { 36 enum NotificationPriority {
40 MIN_PRIORITY = -2, 37 MIN_PRIORITY = -2,
41 LOW_PRIORITY = -1, 38 LOW_PRIORITY = -1,
42 DEFAULT_PRIORITY = 0, 39 DEFAULT_PRIORITY = 0,
43 HIGH_PRIORITY = 1, 40 HIGH_PRIORITY = 1,
44 MAX_PRIORITY = 2, 41 MAX_PRIORITY = 2,
45 42
46 // Top priority for system-level notifications.. This can't be set from 43 // Top priority for system-level notifications.. This can't be set from
47 // kPriorityKey, instead you have to call SetSystemPriority() of 44 // kPriorityKey, instead you have to call SetSystemPriority() of
48 // Notification object. 45 // Notification object.
49 SYSTEM_PRIORITY = 3, 46 SYSTEM_PRIORITY = 3,
50 }; 47 };
51 48
52 } // namespace message_center 49 } // namespace message_center
53 50
54 #endif // UI_MESSAGE_CENTER_NOTIFICATION_TYPES_H_ 51 #endif // UI_MESSAGE_CENTER_NOTIFICATION_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/notifications/notifications_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698