| OLD | NEW |
| 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 "chrome/browser/notifications/desktop_notification_service.h" | 5 #include "chrome/browser/notifications/desktop_notification_service.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/win/metro.h" | 8 #include "base/win/metro.h" |
| 9 #include "chrome/browser/notifications/notification.h" | 9 #include "chrome/browser/notifications/notification.h" |
| 10 #include "chrome/browser/notifications/notification_object_proxy.h" |
| 10 #include "chrome/browser/notifications/notification_ui_manager.h" | 11 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 11 #include "chrome/browser/notifications/notification_ui_manager.h" | 12 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 12 | 13 |
| 13 typedef void (*MetroDisplayNotification)( | 14 typedef void (*MetroDisplayNotification)( |
| 14 const char* origin_url, const char* icon_url, const wchar_t* title, | 15 const char* origin_url, const char* icon_url, const wchar_t* title, |
| 15 const wchar_t* body, const wchar_t* display_source, | 16 const wchar_t* body, const wchar_t* display_source, |
| 16 const char* notification_id); | 17 const char* notification_id); |
| 17 | 18 |
| 18 typedef bool (*MetroCancelNotification)(const char* notification_id); | 19 typedef bool (*MetroCancelNotification)(const char* notification_id); |
| 19 | 20 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 47 notification.body().c_str(), | 48 notification.body().c_str(), |
| 48 notification.display_source().c_str(), | 49 notification.display_source().c_str(), |
| 49 notification.notification_id().c_str()); | 50 notification.notification_id().c_str()); |
| 50 return; | 51 return; |
| 51 } else { | 52 } else { |
| 52 NOTREACHED() << "We don't support HTML notifications in Windows 8 metro"; | 53 NOTREACHED() << "We don't support HTML notifications in Windows 8 metro"; |
| 53 } | 54 } |
| 54 } | 55 } |
| 55 GetUIManager()->Add(notification, profile_); | 56 GetUIManager()->Add(notification, profile_); |
| 56 } | 57 } |
| 57 | |
| 58 | |
| OLD | NEW |