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

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

Issue 1979553003: Consolidate to use MessageView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_center_view.cc
diff --git a/ui/message_center/views/message_center_view.cc b/ui/message_center/views/message_center_view.cc
index e40718629e8b2044b3ceef155c13ea5e7b04cb97..3244188a4273ba71e995cdddeb9648913ad465fb 100644
--- a/ui/message_center/views/message_center_view.cc
+++ b/ui/message_center/views/message_center_view.cc
@@ -425,7 +425,7 @@ void MessageCenterView::OnNotificationRemoved(const std::string& id,
NotificationViewsMap::iterator view_iter = notification_views_.find(id);
if (view_iter == notification_views_.end())
return;
- NotificationView* view = view_iter->second;
+ MessageView* view = view_iter->second;
int index = message_list_view_->GetIndexOf(view);
DCHECK_LE(0, index);
if (by_user) {
@@ -467,7 +467,7 @@ void MessageCenterView::OnNotificationUpdated(const std::string& id) {
bool set = false;
if (message_list_view_->IsMouseHovered()) {
for (const auto& hover_id_view : notification_views_) {
- NotificationView* hover_view = hover_id_view.second;
+ MessageView* hover_view = hover_id_view.second;
if (hover_view->IsMouseHovered()) {
message_list_view_->SetRepositionTarget(hover_view->bounds());
set = true;
@@ -479,7 +479,7 @@ void MessageCenterView::OnNotificationUpdated(const std::string& id) {
message_list_view_->ResetRepositionSession();
// TODO(dimich): add MessageCenter::GetVisibleNotificationById(id)
- NotificationView* view = view_iter->second;
+ MessageView* view = view_iter->second;
const NotificationList::Notifications& notifications =
message_center_->GetVisibleNotifications();
for (NotificationList::Notifications::const_iterator iter =
@@ -568,7 +568,7 @@ void MessageCenterView::AnimationCanceled(const gfx::Animation* animation) {
void MessageCenterView::AddNotificationAt(const Notification& notification,
int index) {
- NotificationView* view =
+ MessageView* view =
NotificationView::Create(this, notification, false); // Not top-level.
view->set_context_menu_controller(context_menu_controller_.get());
notification_views_[notification.id()] = view;

Powered by Google App Engine
This is Rietveld 408576698