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 HasClickedListener()9bool NotificationDelegate::HasClickedListener() { return false; } 10 ButtonClick(int button_index)11void NotificationDelegate::ButtonClick(int button_index) {} 12 HandleNotificationClickedDelegate(const base::Closure & closure)13HandleNotificationClickedDelegate::HandleNotificationClickedDelegate( 14 const base::Closure& closure) 15 : closure_(closure) { 16 } 17 ~HandleNotificationClickedDelegate()18HandleNotificationClickedDelegate::~HandleNotificationClickedDelegate() { 19 } 20 Display()21void HandleNotificationClickedDelegate::Display() { 22 } 23 Error()24void HandleNotificationClickedDelegate::Error() { 25 } 26 Close(bool by_user)27void HandleNotificationClickedDelegate::Close(bool by_user) { 28 } 29 HasClickedListener()30bool HandleNotificationClickedDelegate::HasClickedListener() { 31 return !closure_.is_null(); 32 } 33 Click()34void HandleNotificationClickedDelegate::Click() { 35 if (!closure_.is_null()) 36 closure_.Run(); 37 } 38 ButtonClick(int button_index)39void HandleNotificationClickedDelegate::ButtonClick(int button_index) { 40 } 41 42 } // namespace message_center 43