| 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 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_IMPL_H_ | 5 #ifndef UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_IMPL_H_ |
| 6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_IMPL_H_ | 6 #define UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 void ToggleExpansion() override; | 40 void ToggleExpansion() override; |
| 41 void AddObserver(Observer* observer) override; | 41 void AddObserver(Observer* observer) override; |
| 42 void RemoveObserver(Observer* observer) override; | 42 void RemoveObserver(Observer* observer) override; |
| 43 void IncrementWindowRefCount() override; | 43 void IncrementWindowRefCount() override; |
| 44 void DecrementWindowRefCount() override; | 44 void DecrementWindowRefCount() override; |
| 45 bool GetPinned() const override; | 45 bool GetPinned() const override; |
| 46 const gfx::ImageSkia& GetSnapshot() const override; | 46 const gfx::ImageSkia& GetSnapshot() const override; |
| 47 mojom::ArcNotificationExpandState GetExpandState() const override; | 47 mojom::ArcNotificationExpandState GetExpandState() const override; |
| 48 mojom::ArcNotificationShownContents GetShownContents() const override; | 48 mojom::ArcNotificationShownContents GetShownContents() const override; |
| 49 const std::string& GetNotificationKey() const override; | 49 const std::string& GetNotificationKey() const override; |
| 50 const std::string& GetNotificationId() const override; |
| 50 | 51 |
| 51 private: | 52 private: |
| 52 // Return true if it's on the thread this instance is created on. | 53 // Return true if it's on the thread this instance is created on. |
| 53 bool CalledOnValidThread() const; | 54 bool CalledOnValidThread() const; |
| 54 | 55 |
| 55 ArcNotificationManager* const manager_; | 56 ArcNotificationManager* const manager_; |
| 56 message_center::MessageCenter* const message_center_; | 57 message_center::MessageCenter* const message_center_; |
| 57 | 58 |
| 58 // The pinned state of the latest notification. | 59 // The pinned state of the latest notification. |
| 59 bool pinned_ = false; | 60 bool pinned_ = false; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 83 | 84 |
| 84 base::ThreadChecker thread_checker_; | 85 base::ThreadChecker thread_checker_; |
| 85 base::WeakPtrFactory<ArcNotificationItemImpl> weak_ptr_factory_; | 86 base::WeakPtrFactory<ArcNotificationItemImpl> weak_ptr_factory_; |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(ArcNotificationItemImpl); | 88 DISALLOW_COPY_AND_ASSIGN(ArcNotificationItemImpl); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace arc | 91 } // namespace arc |
| 91 | 92 |
| 92 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_IMPL_H_ | 93 #endif // UI_ARC_NOTIFICATION_ARC_NOTIFICATION_ITEM_IMPL_H_ |
| OLD | NEW |