Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: ui/message_center/views/message_popup_collection.h

Issue 2685283002: Add UpdateNotificationSize to MessageCenterController. (Closed)
Patch Set: address comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/message_center/views/message_list_view_unittest.cc ('k') | ui/message_center/views/message_popup_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698