Add support for notification actions on macOS

This commit is contained in:
Samuel Attard 2017-06-23 20:39:42 +10:00
parent 873a315538
commit 4f0d48f164
16 changed files with 136 additions and 13 deletions

View file

@ -4,6 +4,7 @@
#include <windows.h>
#include <string>
#include <vector>
#include "third_party/skia/include/core/SkBitmap.h"
@ -13,7 +14,8 @@ void Win32Notification::Show(
const base::string16& title, const base::string16& msg,
const std::string& tag, const GURL& icon_url,
const SkBitmap& icon, bool silent,
bool has_reply, const base::string16& reply_placeholder) {
bool has_reply, const base::string16& reply_placeholder,
const std::vector<NotificationAction> actions) {
auto presenter = static_cast<NotificationPresenterWin7*>(this->presenter());
if (!presenter) return;