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

Unified Diff: ui/message_center/views/toast_contents_view.cc

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 side-by-side diff with in-line comments
Download patch
Index: ui/message_center/views/toast_contents_view.cc
diff --git a/ui/message_center/views/toast_contents_view.cc b/ui/message_center/views/toast_contents_view.cc
index 877c3105eca6c2ad0fb4be26c9a6658c9fb31791..2bd7abf06120067bb4dfa57631501e128e0c6468 100644
--- a/ui/message_center/views/toast_contents_view.cc
+++ b/ui/message_center/views/toast_contents_view.cc
@@ -327,6 +327,10 @@ void ToastContentsView::ClickOnSettingsButton(
collection_->ClickOnSettingsButton(notification_id);
}
+void ToastContentsView::UpdateNotification(const std::string& notification_id) {
+ UpdatePreferredSize();
+}
+
void ToastContentsView::RemoveNotification(
const std::string& notification_id,
bool by_user) {

Powered by Google App Engine
This is Rietveld 408576698