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

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

Issue 441753002: Route newly created notifications to notification provider API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bug fix Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_CONVERSION_HELPER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_CONVERSION_HELPER_H_
7
8 #include "base/values.h"
dewittj 2014/08/09 00:29:52 We don't need all these include files. You can re
liyanhou 2014/08/11 17:21:10 Done. I didn't know that. That's great. Thank you
9 #include "chrome/browser/notifications/notification.h"
10 #include "chrome/common/extensions/api/notifications.h"
11 #include "ui/gfx/image/image.h"
12 #include "ui/gfx/image/image_skia.h"
13 #include "ui/message_center/notification_types.h"
14
15 class NotificationConversionHelper {
dewittj 2014/08/09 00:29:52 Probably this class can just be a container for st
liyanhou 2014/08/11 17:21:10 Done.
16 public:
17 NotificationConversionHelper();
18
19 ~NotificationConversionHelper();
20
21 void NotificationToNotificationOptions(
22 const Notification& notification,
23 extensions::api::notifications::NotificationOptions* options);
24
25 private:
26 void GfxImageToNotificationBitmap(
27 const gfx::Image* gfx_image,
28 extensions::api::notifications::NotificationBitmap* return_image_args);
29
30 std::string MapTypeToString(message_center::NotificationType type);
31 };
32
33 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_CONVERSION_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698