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

Unified Diff: ui/message_center/notification_delegate.cc

Issue 221933013: Show a notification when an ephemeral app consumes excessive disk space (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webkit_storage_monitor
Patch Set: Fix test failures Created 6 years, 8 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
« no previous file with comments | « ui/message_center/notification_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_delegate.cc
diff --git a/ui/message_center/notification_delegate.cc b/ui/message_center/notification_delegate.cc
index 899cb2a1056845cfa95bdb88d520191a0c3d9f31..09ef959dbf0c173c25ac9096117b12c8fd61577c 100644
--- a/ui/message_center/notification_delegate.cc
+++ b/ui/message_center/notification_delegate.cc
@@ -6,10 +6,14 @@
namespace message_center {
+// NotificationDelegate:
+
bool NotificationDelegate::HasClickedListener() { return false; }
void NotificationDelegate::ButtonClick(int button_index) {}
+// HandleNotificationClickedDelegate:
+
HandleNotificationClickedDelegate::HandleNotificationClickedDelegate(
const base::Closure& closure)
: closure_(closure) {
@@ -39,4 +43,32 @@ void HandleNotificationClickedDelegate::Click() {
void HandleNotificationClickedDelegate::ButtonClick(int button_index) {
}
+// HandleNotificationButtonClickDelegate:
+
+HandleNotificationButtonClickDelegate::HandleNotificationButtonClickDelegate(
+ const ButtonClickCallback& button_callback)
+ : button_callback_(button_callback) {
+}
+
+HandleNotificationButtonClickDelegate::
+ ~HandleNotificationButtonClickDelegate() {
+}
+
+void HandleNotificationButtonClickDelegate::Display() {
+}
+
+void HandleNotificationButtonClickDelegate::Error() {
+}
+
+void HandleNotificationButtonClickDelegate::Close(bool by_user) {
+}
+
+void HandleNotificationButtonClickDelegate::Click() {
+}
+
+void HandleNotificationButtonClickDelegate::ButtonClick(int button_index) {
+ if (!button_callback_.is_null())
+ button_callback_.Run(button_index);
+}
+
} // namespace message_center
« no previous file with comments | « ui/message_center/notification_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698