| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // Decrement |window_ref_count_| and a CloseNotificationWindow request | 47 // Decrement |window_ref_count_| and a CloseNotificationWindow request |
| 48 // is sent when |window_ref_count_| goes from one to zero. | 48 // is sent when |window_ref_count_| goes from one to zero. |
| 49 void DecrementWindowRefCount(); | 49 void DecrementWindowRefCount(); |
| 50 | 50 |
| 51 bool pinned() const { return pinned_; } | 51 bool pinned() const { return pinned_; } |
| 52 const gfx::ImageSkia& snapshot() const { return snapshot_; } | 52 const gfx::ImageSkia& snapshot() const { return snapshot_; } |
| 53 mojom::ArcNotificationExpandState expand_state() const { | 53 mojom::ArcNotificationExpandState expand_state() const { |
| 54 return expand_state_; | 54 return expand_state_; |
| 55 } | 55 } |
| 56 mojom::ArcNotificationShownContents shown_contents() const { |
| 57 return shown_contents_; |
| 58 } |
| 56 | 59 |
| 57 private: | 60 private: |
| 58 bool pinned_ = false; | 61 bool pinned_ = false; |
| 59 mojom::ArcNotificationExpandState expand_state_ = | 62 mojom::ArcNotificationExpandState expand_state_ = |
| 60 mojom::ArcNotificationExpandState::FIXED_SIZE; | 63 mojom::ArcNotificationExpandState::FIXED_SIZE; |
| 64 mojom::ArcNotificationShownContents shown_contents_ = |
| 65 mojom::ArcNotificationShownContents::CONTENTS_SHOWN; |
| 61 gfx::ImageSkia snapshot_; | 66 gfx::ImageSkia snapshot_; |
| 62 int window_ref_count_ = 0; | 67 int window_ref_count_ = 0; |
| 63 | 68 |
| 64 base::ObserverList<Observer> observers_; | 69 base::ObserverList<Observer> observers_; |
| 65 | 70 |
| 66 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationItem); | 71 DISALLOW_COPY_AND_ASSIGN(ArcCustomNotificationItem); |
| 67 }; | 72 }; |
| 68 | 73 |
| 69 } // namespace arc | 74 } // namespace arc |
| 70 | 75 |
| 71 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_ | 76 #endif // UI_ARC_NOTIFICATION_ARC_CUSTOM_NOTIFICATION_ITEM_H_ |
| OLD | NEW |