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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/notifications/notification_object_proxy.h" 5 #include "chrome/browser/notifications/notification_object_proxy.h"
6 6
7 #include "base/guid.h" 7 #include "base/guid.h"
8 #include "content/public/browser/desktop_notification_delegate.h" 8 #include "content/public/browser/desktop_notification_delegate.h"
9 9
10 NotificationObjectProxy::NotificationObjectProxy( 10 NotificationObjectProxy::NotificationObjectProxy(
(...skipping 12 matching lines...) Expand all
23 displayed_ = true; 23 displayed_ = true;
24 24
25 delegate_->NotificationDisplayed(); 25 delegate_->NotificationDisplayed();
26 } 26 }
27 27
28 void NotificationObjectProxy::Close(bool by_user) { 28 void NotificationObjectProxy::Close(bool by_user) {
29 delegate_->NotificationClosed(); 29 delegate_->NotificationClosed();
30 } 30 }
31 31
32 void NotificationObjectProxy::Click() { 32 void NotificationObjectProxy::Click() {
33 delegate_->NotificationClick(); 33 delegate_->NotificationClick(-1);
Peter Beverloo 2015/08/07 07:27:28 +comment (but preferably a constant, as you sugges
34 }
35
36 void NotificationObjectProxy::ButtonClick(int button_index) {
37 delegate_->NotificationClick(button_index);
34 } 38 }
35 39
36 std::string NotificationObjectProxy::id() const { 40 std::string NotificationObjectProxy::id() const {
37 return id_; 41 return id_;
38 } 42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698