Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 72 | 72 |
| 73 bool IsValidChild(const views::View* child) const; | 73 bool IsValidChild(const views::View* child) const; |
| 74 void DoUpdateIfPossible(); | 74 void DoUpdateIfPossible(); |
| 75 | 75 |
| 76 // Animates all notifications below target upwards to align with the top of | 76 // Animates all notifications below target upwards to align with the top of |
| 77 // the last closed notification. | 77 // the last closed notification. |
| 78 void AnimateNotificationsBelowTarget(); | 78 void AnimateNotificationsBelowTarget(); |
| 79 // Animates all notifications above target downwards to align with the top of | 79 // Animates all notifications above target downwards to align with the top of |
| 80 // the last closed notification. | 80 // the last closed notification. |
| 81 void AnimateNotificationsAboveTarget(); | 81 void AnimateNotificationsAboveTarget(); |
| 82 // Computes reposition offsets for |AnimateNotificationsAboveTarget|. | |
| 83 std::vector<int> ComputeRepositionOffsets(const std::vector<int>& heights, | |
|
xiyuan
2017/02/16 16:57:46
nit: #include <vector> ?
Eliot Courtney
2017/02/17 07:49:49
Done.
| |
| 84 const std::vector<bool>& deleting, | |
| 85 int target_index, | |
| 86 int padding); | |
| 82 | 87 |
| 83 // Schedules animation for a child to the specified position. Returns false | 88 // Schedules animation for a child to the specified position. Returns false |
| 84 // if |child| will disappear after the animation. | 89 // if |child| will disappear after the animation. |
| 85 bool AnimateChild(views::View* child, | 90 bool AnimateChild(views::View* child, |
| 86 int top, | 91 int top, |
| 87 int height, | 92 int height, |
| 88 bool animate_even_on_move); | 93 bool animate_even_on_move); |
| 89 | 94 |
| 90 // Animate clearing one notification. | 95 // Animate clearing one notification. |
| 91 void AnimateClearingOneNotification(); | 96 void AnimateClearingOneNotification(); |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 108 // This is just for tests and has no setter. | 113 // This is just for tests and has no setter. |
| 109 bool quit_message_loop_after_animation_for_test_; | 114 bool quit_message_loop_after_animation_for_test_; |
| 110 | 115 |
| 111 base::WeakPtrFactory<MessageListView> weak_ptr_factory_; | 116 base::WeakPtrFactory<MessageListView> weak_ptr_factory_; |
| 112 DISALLOW_COPY_AND_ASSIGN(MessageListView); | 117 DISALLOW_COPY_AND_ASSIGN(MessageListView); |
| 113 }; | 118 }; |
| 114 | 119 |
| 115 } // namespace message_center | 120 } // namespace message_center |
| 116 | 121 |
| 117 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_ | 122 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_LIST_VIEW_H_ |
| OLD | NEW |