| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "ui/arc/notification/arc_notification_delegate.h" | 5 #include "ui/arc/notification/arc_notification_delegate.h" |
| 6 | 6 |
| 7 #include "ui/arc/notification/arc_notification_content_view.h" | 7 #include "ui/arc/notification/arc_notification_content_view.h" |
| 8 #include "ui/arc/notification/arc_notification_item.h" | 8 #include "ui/arc/notification/arc_notification_item.h" |
| 9 #include "ui/arc/notification/arc_notification_view.h" | 9 #include "ui/arc/notification/arc_notification_view.h" |
| 10 #include "ui/message_center/notification.h" | 10 #include "ui/message_center/notification.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 void ArcNotificationDelegate::Close(bool by_user) { | 38 void ArcNotificationDelegate::Close(bool by_user) { |
| 39 DCHECK(item_); | 39 DCHECK(item_); |
| 40 item_->Close(by_user); | 40 item_->Close(by_user); |
| 41 } | 41 } |
| 42 | 42 |
| 43 void ArcNotificationDelegate::Click() { | 43 void ArcNotificationDelegate::Click() { |
| 44 DCHECK(item_); | 44 DCHECK(item_); |
| 45 item_->Click(); | 45 item_->Click(); |
| 46 } | 46 } |
| 47 | 47 |
| 48 bool ArcNotificationDelegate::SettingsClick() { |
| 49 DCHECK(item_); |
| 50 item_->OpenSettings(); |
| 51 return true; |
| 52 } |
| 53 |
| 48 } // namespace arc | 54 } // namespace arc |
| OLD | NEW |