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

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

Issue 2685283002: Add UpdateNotificationSize to MessageCenterController. (Closed)
Patch Set: whitespace 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..21d4d836af1fb35cd22f452933237cf663cdf466 100644
--- a/ui/message_center/views/toast_contents_view.cc
+++ b/ui/message_center/views/toast_contents_view.cc
@@ -327,6 +327,11 @@ void ToastContentsView::ClickOnSettingsButton(
collection_->ClickOnSettingsButton(notification_id);
}
+void ToastContentsView::ShouldUpdateNotification(
+ 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