| 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_CUSTOM_NOTIFICATION_ITEM_H_ | 5 #ifndef UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_ |
| 6 #define UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_ | 6 #define UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "ui/arc/notification/arc_notification_item.h" | 10 #include "ui/arc/notification/arc_notification_item.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 virtual ~Observer() = default; | 26 virtual ~Observer() = default; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 ArcCustomNotificationItem(ArcNotificationManager* manager, | 29 ArcCustomNotificationItem(ArcNotificationManager* manager, |
| 30 message_center::MessageCenter* message_center, | 30 message_center::MessageCenter* message_center, |
| 31 const std::string& notification_key, | 31 const std::string& notification_key, |
| 32 const AccountId& profile_id); | 32 const AccountId& profile_id); |
| 33 ~ArcCustomNotificationItem() override; | 33 ~ArcCustomNotificationItem() override; |
| 34 | 34 |
| 35 void UpdateWithArcNotificationData( | 35 void UpdateWithArcNotificationData( |
| 36 const mojom::ArcNotificationData& data) override; | 36 mojom::ArcNotificationDataPtr data) override; |
| 37 | 37 |
| 38 void CloseFromCloseButton(); | 38 void CloseFromCloseButton(); |
| 39 | 39 |
| 40 void AddObserver(Observer* observer); | 40 void AddObserver(Observer* observer); |
| 41 void RemoveObserver(Observer* observer); | 41 void RemoveObserver(Observer* observer); |
| 42 | 42 |
| 43 // Increment |window_ref_count_| and a CreateNotificationWindow request | 43 // Increment |window_ref_count_| and a CreateNotificationWindow request |
| 44 // is sent when |window_ref_count_| goes from zero to one. | 44 // is sent when |window_ref_count_| goes from zero to one. |
| 45 void IncrementWindowRefCount(); | 45 void IncrementWindowRefCount(); |
| 46 | 46 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 57 int window_ref_count_ = 0; | 57 int window_ref_count_ = 0; |
| 58 | 58 |
| 59 base::ObserverList<Observer> observers_; | 59 base::ObserverList<Observer> observers_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationItem); | 61 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationItem); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace arc | 64 } // namespace arc |
| 65 | 65 |
| 66 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_ | 66 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_ |
| OLD | NEW |