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