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

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

Issue 2696523002: Stop notifications from being clipped on resize. (Closed)
Patch Set: Add additional 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/message_list_view.h
diff --git a/ui/message_center/views/message_list_view.h b/ui/message_center/views/message_list_view.h
index e71bc8f4e0a96ad9e8921ccfb27bff9bd211e8ea..1104b47cfebbfd94cf7d338000e95f9da34ae4fd 100644
--- a/ui/message_center/views/message_list_view.h
+++ b/ui/message_center/views/message_list_view.h
@@ -7,6 +7,7 @@
#include <list>
#include <set>
+#include <vector>
#include "base/macros.h"
#include "ui/compositor/paint_context.h"
@@ -79,6 +80,11 @@ class MESSAGE_CENTER_EXPORT MessageListView
// Animates all notifications above target downwards to align with the top of
// the last closed notification.
void AnimateNotificationsAboveTarget();
+ // Computes reposition offsets for |AnimateNotificationsAboveTarget|.
+ std::vector<int> ComputeRepositionOffsets(const std::vector<int>& heights,
+ const std::vector<bool>& deleting,
+ int target_index,
+ int padding);
// Schedules animation for a child to the specified position. Returns false
// if |child| will disappear after the animation.
« no previous file with comments | « ui/message_center/views/message_center_view_unittest.cc ('k') | ui/message_center/views/message_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698