| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 void ClickOnNotification(const std::string& notification_id) override; | 61 void ClickOnNotification(const std::string& notification_id) override; |
| 62 void RemoveNotification(const std::string& notification_id, | 62 void RemoveNotification(const std::string& notification_id, |
| 63 bool by_user) override; | 63 bool by_user) override; |
| 64 std::unique_ptr<ui::MenuModel> CreateMenuModel( | 64 std::unique_ptr<ui::MenuModel> CreateMenuModel( |
| 65 const NotifierId& notifier_id, | 65 const NotifierId& notifier_id, |
| 66 const base::string16& display_source) override; | 66 const base::string16& display_source) override; |
| 67 bool HasClickedListener(const std::string& notification_id) override; | 67 bool HasClickedListener(const std::string& notification_id) override; |
| 68 void ClickOnNotificationButton(const std::string& notification_id, | 68 void ClickOnNotificationButton(const std::string& notification_id, |
| 69 int button_index) override; | 69 int button_index) override; |
| 70 void ClickOnSettingsButton(const std::string& notification_id) override; | 70 void ClickOnSettingsButton(const std::string& notification_id) override; |
| 71 void UpdateNotificationSize(const std::string& notification_id) override; |
| 71 | 72 |
| 72 void MarkAllPopupsShown(); | 73 void MarkAllPopupsShown(); |
| 73 | 74 |
| 74 // Since these events are really coming from individual toast widgets, | 75 // Since these events are really coming from individual toast widgets, |
| 75 // it helps to be able to keep track of the sender. | 76 // it helps to be able to keep track of the sender. |
| 76 void OnMouseEntered(ToastContentsView* toast_entered); | 77 void OnMouseEntered(ToastContentsView* toast_entered); |
| 77 void OnMouseExited(ToastContentsView* toast_exited); | 78 void OnMouseExited(ToastContentsView* toast_exited); |
| 78 | 79 |
| 79 // Invoked by toasts when they start/finish their animations. | 80 // Invoked by toasts when they start/finish their animations. |
| 80 // While "defer counter" is greater than zero, the popup collection does | 81 // While "defer counter" is greater than zero, the popup collection does |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // Gives out weak pointers to toast contents views which have an unrelated | 173 // Gives out weak pointers to toast contents views which have an unrelated |
| 173 // lifetime. Must remain the last member variable. | 174 // lifetime. Must remain the last member variable. |
| 174 base::WeakPtrFactory<MessagePopupCollection> weak_factory_; | 175 base::WeakPtrFactory<MessagePopupCollection> weak_factory_; |
| 175 | 176 |
| 176 DISALLOW_COPY_AND_ASSIGN(MessagePopupCollection); | 177 DISALLOW_COPY_AND_ASSIGN(MessagePopupCollection); |
| 177 }; | 178 }; |
| 178 | 179 |
| 179 } // namespace message_center | 180 } // namespace message_center |
| 180 | 181 |
| 181 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_POPUP_COLLECTION_H_ | 182 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_POPUP_COLLECTION_H_ |
| OLD | NEW |