| Index: win8/metro_driver/toast_notification_handler.h
|
| ===================================================================
|
| --- win8/metro_driver/toast_notification_handler.h (revision 160886)
|
| +++ win8/metro_driver/toast_notification_handler.h (working copy)
|
| @@ -8,6 +8,7 @@
|
| #include <windows.ui.notifications.h>
|
|
|
| #include "base/string16.h"
|
| +#include "base/win/metro.h"
|
|
|
| // Provides functionality to display a metro style toast notification.
|
| class ToastNotificationHandler {
|
| @@ -20,13 +21,19 @@
|
| string16 body;
|
| string16 display_source;
|
| std::string id;
|
| + base::win::MetroNotificationClickedHandler notification_handler;
|
| + string16 notification_context;
|
|
|
| DesktopNotification(const char* notification_origin,
|
| const char* notification_icon,
|
| const wchar_t* notification_title,
|
| const wchar_t* notification_body,
|
| const wchar_t* notification_display_source,
|
| - const char* notification_id);
|
| + const char* notification_id,
|
| + base::win::MetroNotificationClickedHandler handler,
|
| + const wchar_t* handler_context);
|
| +
|
| + DesktopNotification();
|
| };
|
|
|
| ToastNotificationHandler();
|
| @@ -41,8 +48,8 @@
|
| private:
|
| mswr::ComPtr<winui::Notifications::IToastNotifier> notifier_;
|
| mswr::ComPtr<winui::Notifications::IToastNotification> notification_;
|
| -
|
| EventRegistrationToken activated_token_;
|
| + DesktopNotification notification_info_;
|
| };
|
|
|
| #endif // CHROME_BROWSER_UI_METRO_DRIVER_TOAST_NOTIFICATION_HANDLER_H_
|
|
|