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

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

Issue 1913433004: Supporting shrinking/enlarging for notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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.h
diff --git a/ui/message_center/views/toast_contents_view.h b/ui/message_center/views/toast_contents_view.h
index bd488bea20050adc12f959bbce514e19d42dae50..f8eebc74f6627a5d1a23e36edd9a3043bcd49079 100644
--- a/ui/message_center/views/toast_contents_view.h
+++ b/ui/message_center/views/toast_contents_view.h
@@ -102,6 +102,9 @@ class ToastContentsView : public views::WidgetDelegateView,
void OnDisplayChanged() override;
void OnWorkAreaChanged() override;
+ // Recalculates preferred size from underlying view and notifies about it.
+ void UpdatePreferredSize();
+
// Initialization and update.
void CreateWidget(gfx::NativeView parent);

Powered by Google App Engine
This is Rietveld 408576698