OLD | NEW |
---|---|
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 Loading... | |
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 } |
OLD | NEW |