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

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

Issue 117513006: Remove experimental code fro grouping notifications from the same source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE; 75 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE;
76 virtual void RemoveNotification(const std::string& notification_id, 76 virtual void RemoveNotification(const std::string& notification_id,
77 bool by_user) OVERRIDE; 77 bool by_user) OVERRIDE;
78 virtual scoped_ptr<ui::MenuModel> CreateMenuModel( 78 virtual scoped_ptr<ui::MenuModel> CreateMenuModel(
79 const NotifierId& notifier_id, 79 const NotifierId& notifier_id,
80 const base::string16& display_source) OVERRIDE; 80 const base::string16& display_source) OVERRIDE;
81 virtual bool HasClickedListener(const std::string& notification_id) OVERRIDE; 81 virtual bool HasClickedListener(const std::string& notification_id) OVERRIDE;
82 virtual void ClickOnNotificationButton(const std::string& notification_id, 82 virtual void ClickOnNotificationButton(const std::string& notification_id,
83 int button_index) OVERRIDE; 83 int button_index) OVERRIDE;
84 virtual void ExpandNotification(const std::string& notification_id) OVERRIDE; 84 virtual void ExpandNotification(const std::string& notification_id) OVERRIDE;
85 virtual void GroupBodyClicked(const std::string& last_notification_id)
86 OVERRIDE;
87 virtual void ExpandGroup(const NotifierId& notifier_id) OVERRIDE;
88 virtual void RemoveGroup(const NotifierId& notifier_id) OVERRIDE;
89 85
90 void MarkAllPopupsShown(); 86 void MarkAllPopupsShown();
91 87
92 // Since these events are really coming from individual toast widgets, 88 // Since these events are really coming from individual toast widgets,
93 // it helps to be able to keep track of the sender. 89 // it helps to be able to keep track of the sender.
94 void OnMouseEntered(ToastContentsView* toast_entered); 90 void OnMouseEntered(ToastContentsView* toast_entered);
95 void OnMouseExited(ToastContentsView* toast_exited); 91 void OnMouseExited(ToastContentsView* toast_exited);
96 92
97 // Invoked by toasts when they start/finish their animations. 93 // Invoked by toasts when they start/finish their animations.
98 // While "defer counter" is greater then zero, the popup collection does 94 // While "defer counter" is greater then zero, the popup collection does
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // Gives out weak pointers to toast contents views which have an unrelated 218 // Gives out weak pointers to toast contents views which have an unrelated
223 // lifetime. Must remain the last member variable. 219 // lifetime. Must remain the last member variable.
224 base::WeakPtrFactory<MessagePopupCollection> weak_factory_; 220 base::WeakPtrFactory<MessagePopupCollection> weak_factory_;
225 221
226 DISALLOW_COPY_AND_ASSIGN(MessagePopupCollection); 222 DISALLOW_COPY_AND_ASSIGN(MessagePopupCollection);
227 }; 223 };
228 224
229 } // namespace message_center 225 } // namespace message_center
230 226
231 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_POPUP_COLLECTION_H_ 227 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_POPUP_COLLECTION_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/message_center_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