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

Side by Side Diff: ui/arc/notification/arc_notification_item.h

Issue 2394483004: arc: OnClosedFromAndroid removes notifications as not by_user (Closed)
Patch Set: remove by_user from OnClosedFromAndroid Created 4 years, 2 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 | « no previous file | ui/arc/notification/arc_notification_item.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_ 5 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_
6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_ 6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 ArcNotificationItem(ArcNotificationManager* manager, 25 ArcNotificationItem(ArcNotificationManager* manager,
26 message_center::MessageCenter* message_center, 26 message_center::MessageCenter* message_center,
27 const std::string& notification_key, 27 const std::string& notification_key,
28 const AccountId& profile_id); 28 const AccountId& profile_id);
29 virtual ~ArcNotificationItem(); 29 virtual ~ArcNotificationItem();
30 30
31 virtual void UpdateWithArcNotificationData( 31 virtual void UpdateWithArcNotificationData(
32 mojom::ArcNotificationDataPtr data); 32 mojom::ArcNotificationDataPtr data);
33 33
34 // Methods called from ArcNotificationManager: 34 // Methods called from ArcNotificationManager:
35 void OnClosedFromAndroid(bool by_user); 35 void OnClosedFromAndroid();
36 36
37 // Methods called from ArcNotificationItemDelegate: 37 // Methods called from ArcNotificationItemDelegate:
38 void Close(bool by_user); 38 void Close(bool by_user);
39 void Click(); 39 void Click();
40 void ButtonClick(int button_index); 40 void ButtonClick(int button_index);
41 41
42 const std::string& notification_key() const { return notification_key_; } 42 const std::string& notification_key() const { return notification_key_; }
43 43
44 protected: 44 protected:
45 static int ConvertAndroidPriority(int android_priority); 45 static int ConvertAndroidPriority(int android_priority);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 base::ThreadChecker thread_checker_; 97 base::ThreadChecker thread_checker_;
98 base::WeakPtrFactory<ArcNotificationItem> weak_ptr_factory_; 98 base::WeakPtrFactory<ArcNotificationItem> weak_ptr_factory_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(ArcNotificationItem); 100 DISALLOW_COPY_AND_ASSIGN(ArcNotificationItem);
101 }; 101 };
102 102
103 } // namespace arc 103 } // namespace arc
104 104
105 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_ 105 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_
OLDNEW
« no previous file with comments | « no previous file | ui/arc/notification/arc_notification_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698