| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_POPUP_COLLECTION_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_POPUP_COLLECTION_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_POPUP_COLLECTION_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_POPUP_COLLECTION_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // |parent| specifies the parent widget of the toast windows. The default | 61 // |parent| specifies the parent widget of the toast windows. The default |
| 62 // parent will be used for NULL. Usually each icon is spacing against its | 62 // parent will be used for NULL. Usually each icon is spacing against its |
| 63 // predecessor. If |first_item_has_no_margin| is set however the first item | 63 // predecessor. If |first_item_has_no_margin| is set however the first item |
| 64 // does not space against the tray. | 64 // does not space against the tray. |
| 65 MessagePopupCollection(gfx::NativeView parent, | 65 MessagePopupCollection(gfx::NativeView parent, |
| 66 MessageCenter* message_center, | 66 MessageCenter* message_center, |
| 67 MessageCenterTray* tray, | 67 MessageCenterTray* tray, |
| 68 bool first_item_has_no_margin); | 68 bool first_item_has_no_margin); |
| 69 virtual ~MessagePopupCollection(); | 69 virtual ~MessagePopupCollection(); |
| 70 | 70 |
| 71 void MarkAllPopupsShown(); |
| 72 |
| 71 // Since these events are really coming from individual toast widgets, | 73 // Since these events are really coming from individual toast widgets, |
| 72 // it helps to be able to keep track of the sender. | 74 // it helps to be able to keep track of the sender. |
| 73 void OnMouseEntered(ToastContentsView* toast_entered); | 75 void OnMouseEntered(ToastContentsView* toast_entered); |
| 74 void OnMouseExited(ToastContentsView* toast_exited); | 76 void OnMouseExited(ToastContentsView* toast_exited); |
| 75 | 77 |
| 76 // Invoked by toasts when they start/finish their animations. | 78 // Invoked by toasts when they start/finish their animations. |
| 77 // While "defer counter" is greater then zero, the popup collection does | 79 // While "defer counter" is greater then zero, the popup collection does |
| 78 // not perform updates. It is used to wait for various animations and user | 80 // not perform updates. It is used to wait for various animations and user |
| 79 // actions like serial closing of the toasts, when the remaining toasts "flow | 81 // actions like serial closing of the toasts, when the remaining toasts "flow |
| 80 // under the mouse". | 82 // under the mouse". |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // Gives out weak pointers to toast contents views which have an unrelated | 201 // Gives out weak pointers to toast contents views which have an unrelated |
| 200 // lifetime. Must remain the last member variable. | 202 // lifetime. Must remain the last member variable. |
| 201 base::WeakPtrFactory<MessagePopupCollection> weak_factory_; | 203 base::WeakPtrFactory<MessagePopupCollection> weak_factory_; |
| 202 | 204 |
| 203 DISALLOW_COPY_AND_ASSIGN(MessagePopupCollection); | 205 DISALLOW_COPY_AND_ASSIGN(MessagePopupCollection); |
| 204 }; | 206 }; |
| 205 | 207 |
| 206 } // namespace message_center | 208 } // namespace message_center |
| 207 | 209 |
| 208 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_POPUP_COLLECTION_H_ | 210 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_POPUP_COLLECTION_H_ |
| OLD | NEW |