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

Unified Diff: Source/modules/notifications/Notification.h

Issue 1263043003: Add NotificationAction.action member (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@actions
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: Source/modules/notifications/Notification.h
diff --git a/Source/modules/notifications/Notification.h b/Source/modules/notifications/Notification.h
index 938c5ad6a1779638b670f8ef2d4cfe6e5c8e4714..3dd3aa6059b7f1359521d473652cd0b17ace1685 100644
--- a/Source/modules/notifications/Notification.h
+++ b/Source/modules/notifications/Notification.h
@@ -148,7 +148,6 @@ private:
void setVibrate(const NavigatorVibration::VibrationPattern& vibrate) { m_vibrate = vibrate; }
void setSilent(bool silent) { m_silent = silent; }
void setSerializedData(PassRefPtr<SerializedScriptValue> data) { m_serializedData = data; }
- void setActions(const Vector<NotificationAction>& actions) { m_actions = actions; }
void setPersistentId(int64_t persistentId) { m_persistentId = persistentId; }
@@ -192,6 +191,7 @@ void Notification::actionsToWebActions(const Vector<NotificationAction, C, A>& a
WebVector<WebNotificationAction> clearedAndResized(count);
webActions.swap(clearedAndResized);
for (size_t i = 0; i < count; ++i) {
+ webActions[i].action = actions[i].action();
webActions[i].title = actions[i].title();
}
}

Powered by Google App Engine
This is Rietveld 408576698