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

Unified Diff: chrome/browser/notifications/notification_object_proxy.cc

Issue 1275743003: Deliver action clicks to page notifications (chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@click_test
Patch Set: Created 5 years, 4 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: chrome/browser/notifications/notification_object_proxy.cc
diff --git a/chrome/browser/notifications/notification_object_proxy.cc b/chrome/browser/notifications/notification_object_proxy.cc
index e98a82cde6d25e7cef1d72fcd2321c4dc423e02e..b46b1acd92855d9d641c12e07e7b7cb92349162e 100644
--- a/chrome/browser/notifications/notification_object_proxy.cc
+++ b/chrome/browser/notifications/notification_object_proxy.cc
@@ -30,7 +30,11 @@ void NotificationObjectProxy::Close(bool by_user) {
}
void NotificationObjectProxy::Click() {
- delegate_->NotificationClick();
+ delegate_->NotificationClick(-1);
Peter Beverloo 2015/08/07 07:27:28 +comment (but preferably a constant, as you sugges
+}
+
+void NotificationObjectProxy::ButtonClick(int button_index) {
+ delegate_->NotificationClick(button_index);
}
std::string NotificationObjectProxy::id() const {

Powered by Google App Engine
This is Rietveld 408576698