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

Side by Side Diff: ui/notifications/notification_types.cc

Issue 11410008: Created initial multi-item notification view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
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 #include "ui/notifications/notification_types.h" 5 #include "ui/notifications/notification_types.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 namespace notifications { 9 namespace notifications {
10 10
11 const char kMessageIntentKey[] = "message_intent"; 11 const char kMessageIntentKey[] = "message_intent";
12 const char kPriorityKey[] = "priority"; 12 const char kPriorityKey[] = "priority";
13 const char kTimestampKey[] = "timestamp"; 13 const char kTimestampKey[] = "timestamp";
14 const char kSecondIconUrlKey[] = "second_icon_url"; 14 const char kSecondIconUrlKey[] = "second_icon_url";
15 const char kUnreadCountKey[] = "unread_count"; 15 const char kUnreadCountKey[] = "unread_count";
16 const char kButtonOneTitleKey[] = "button_one_title"; 16 const char kButtonOneTitleKey[] = "button_one_title";
17 const char kButtonOneIntentKey[] = "button_one_intent"; 17 const char kButtonOneIntentKey[] = "button_one_intent";
18 const char kButtonTwoTitleKey[] = "button_two_title"; 18 const char kButtonTwoTitleKey[] = "button_two_title";
19 const char kButtonTwoIntentKey[] = "button_two_intent"; 19 const char kButtonTwoIntentKey[] = "button_two_intent";
20 const char kExpandedMessageKey[] = "expanded_message"; 20 const char kExpandedMessageKey[] = "expanded_message";
21 const char kImageUrlKey[] = "image_url"; 21 const char kImageUrlKey[] = "image_url";
22 22
23 const char kSimpleType[] = "simple"; 23 const char kSimpleType[] = "simple";
24 const char kBaseFormatType[] = "base"; 24 const char kBaseFormatType[] = "base";
25 const char kMultipleType[] = "multiple";
25 26
26 NotificationType StringToNotificationType(std::string& string_type) { 27 NotificationType StringToNotificationType(std::string& string_type) {
27 if (string_type == kSimpleType) 28 if (string_type == kSimpleType)
28 return NOTIFICATION_TYPE_SIMPLE; 29 return NOTIFICATION_TYPE_SIMPLE;
29 if (string_type == kBaseFormatType) 30 if (string_type == kBaseFormatType)
30 return NOTIFICATION_TYPE_BASE_FORMAT; 31 return NOTIFICATION_TYPE_BASE_FORMAT;
32 if (string_type == kMultipleType)
33 return NOTIFICATION_TYPE_MULTIPLE;
31 34
32 // In case of unrecognized string, fall back to most common type. 35 // In case of unrecognized string, fall back to most common type.
33 return NOTIFICATION_TYPE_SIMPLE; 36 return NOTIFICATION_TYPE_SIMPLE;
34 } 37 }
35 38
36 } // namespace notifications 39 } // namespace notifications
37 40
38 } // namespace ui 41 } // namespace ui
OLDNEW
« ui/message_center/notification_list.h ('K') | « ui/notifications/notification_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698