1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "ui/message_center/notification_delegate.h" 6 7 namespace message_center { 8 9 bool NotificationDelegate::HasClickedListener() { return false; } 10 11 void NotificationDelegate::ButtonClick(int button_index) {} 12 13 HandleNotificationClickedDelegate::HandleNotificationClickedDelegate( 14 const base::Closure& closure) 15 : closure_(closure) { 16 } 17 18 HandleNotificationClickedDelegate::~HandleNotificationClickedDelegate() { 19 } 20 21 void HandleNotificationClickedDelegate::Display() { 22 } 23 24 void HandleNotificationClickedDelegate::Error() { 25 } 26 27 void HandleNotificationClickedDelegate::Close(bool by_user) { 28 } 29 30 bool HandleNotificationClickedDelegate::HasClickedListener() { 31 return !closure_.is_null(); 32 } 33 34 void HandleNotificationClickedDelegate::Click() { 35 closure_.Run(); 36 } 37 38 void HandleNotificationClickedDelegate::ButtonClick(int button_index) { 39 } 40 41 } // namespace message_center 42