OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 ~ArcNotificationItem(); | 28 ~ArcNotificationItem(); |
29 | 29 |
30 void UpdateWithArcNotificationData(const ArcNotificationData& data); | 30 void UpdateWithArcNotificationData(const ArcNotificationData& data); |
31 | 31 |
32 // Methods called from ArcNotificationManager: | 32 // Methods called from ArcNotificationManager: |
33 void OnClosedFromAndroid(); | 33 void OnClosedFromAndroid(); |
34 | 34 |
35 // Methods called from ArcNotificationItemDelegate: | 35 // Methods called from ArcNotificationItemDelegate: |
36 void Close(bool by_user); | 36 void Close(bool by_user); |
37 void Click(); | 37 void Click(); |
| 38 void ButtonClick(int button_index); |
38 | 39 |
39 private: | 40 private: |
40 void OnImageDecoded(const SkBitmap& bitmap); | 41 void OnImageDecoded(const SkBitmap& bitmap); |
41 | 42 |
42 ArcNotificationManager* const manager_; | 43 ArcNotificationManager* const manager_; |
43 message_center::MessageCenter* const message_center_; | 44 message_center::MessageCenter* const message_center_; |
44 const AccountId profile_id_; | 45 const AccountId profile_id_; |
45 | 46 |
46 const std::string notification_key_; | 47 const std::string notification_key_; |
47 const std::string notification_id_; | 48 const std::string notification_id_; |
(...skipping 16 matching lines...) Expand all Loading... |
64 | 65 |
65 base::ThreadChecker thread_checker_; | 66 base::ThreadChecker thread_checker_; |
66 base::WeakPtrFactory<ArcNotificationItem> weak_ptr_factory_; | 67 base::WeakPtrFactory<ArcNotificationItem> weak_ptr_factory_; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(ArcNotificationItem); | 69 DISALLOW_COPY_AND_ASSIGN(ArcNotificationItem); |
69 }; | 70 }; |
70 | 71 |
71 } // namespace arc | 72 } // namespace arc |
72 | 73 |
73 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_ | 74 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_H_ |
OLD | NEW |