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

Unified Diff: content/public/common/platform_notification_data.h

Issue 1267673003: Plumb Blink notification actions to button UI on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
Index: content/public/common/platform_notification_data.h
diff --git a/content/public/common/platform_notification_data.h b/content/public/common/platform_notification_data.h
index 40bd98d0873aab72df91fb7682101fcc6ad6bfd2..a5fe7dacbf087e1129a89a7ffd83db601e926ef6 100644
--- a/content/public/common/platform_notification_data.h
+++ b/content/public/common/platform_notification_data.h
@@ -10,6 +10,7 @@
#include "base/strings/string16.h"
#include "content/common/content_export.h"
+#include "content/public/common/platform_notification_action.h"
#include "url/gurl.h"
namespace content {
@@ -62,6 +63,9 @@ struct CONTENT_EXPORT PlatformNotificationData {
// Developer-provided data associated with the notification, in the form of
// a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes.
std::vector<char> data;
+
+ // Actions that should be shown as buttons on the notification.
+ std::vector<PlatformNotificationAction> actions;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698