Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |