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

Unified Diff: win8/metro_driver/toast_notification_handler.h

Issue 11096013: Add functionality to the Windows 8 notification display functionality to invoke a caller specified … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « win8/metro_driver/chrome_app_view.cc ('k') | win8/metro_driver/toast_notification_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « win8/metro_driver/chrome_app_view.cc ('k') | win8/metro_driver/toast_notification_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698