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

Side by Side Diff: chrome/browser/notifications/notification_conversion_helper.cc

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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/notifications/notification_conversion_helper.h" 5 #include "chrome/browser/notifications/notification_conversion_helper.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 message_center::NotificationType type) { 195 message_center::NotificationType type) {
196 switch (type) { 196 switch (type) {
197 case message_center::NOTIFICATION_TYPE_BASE_FORMAT: 197 case message_center::NOTIFICATION_TYPE_BASE_FORMAT:
198 return "basic"; 198 return "basic";
199 case message_center::NOTIFICATION_TYPE_IMAGE: 199 case message_center::NOTIFICATION_TYPE_IMAGE:
200 return "image"; 200 return "image";
201 case message_center::NOTIFICATION_TYPE_MULTIPLE: 201 case message_center::NOTIFICATION_TYPE_MULTIPLE:
202 return "list"; 202 return "list";
203 case message_center::NOTIFICATION_TYPE_PROGRESS: 203 case message_center::NOTIFICATION_TYPE_PROGRESS:
204 return "progress"; 204 return "progress";
205 case message_center::NOTIFICATION_TYPE_CUSTOM:
206 return "custom";
205 default: 207 default:
206 NOTREACHED(); 208 NOTREACHED();
207 return ""; 209 return "";
208 } 210 }
209 } 211 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/autotest_private/autotest_private_api.cc ('k') | ui/message_center/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698