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

Side by Side Diff: ui/arc/notification/arc_notification_delegate.cc

Issue 2960333003: Extract the view of control buttons on notification into a separated class (Closed)
Patch Set: addressed comments Created 3 years, 5 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 unified diff | Download patch
« no previous file with comments | « ui/arc/notification/arc_notification_delegate.h ('k') | ui/message_center/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/arc/notification/arc_notification_delegate.h ('k') | ui/message_center/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698