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

Side by Side Diff: ui/message_center/views/message_center_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/message_center/views/message_center_view.h" 5 #include "ui/message_center/views/message_center_view.h"
6 6
7 #include <list> 7 #include <list>
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 const std::string& notification_id, 440 const std::string& notification_id,
441 int button_index) { 441 int button_index) {
442 message_center_->ClickOnNotificationButton(notification_id, button_index); 442 message_center_->ClickOnNotificationButton(notification_id, button_index);
443 } 443 }
444 444
445 void MessageCenterView::ClickOnSettingsButton( 445 void MessageCenterView::ClickOnSettingsButton(
446 const std::string& notification_id) { 446 const std::string& notification_id) {
447 message_center_->ClickOnSettingsButton(notification_id); 447 message_center_->ClickOnSettingsButton(notification_id);
448 } 448 }
449 449
450 void MessageCenterView::UpdateNotificationSize(
451 const std::string& notification_id) {
452 OnNotificationUpdated(notification_id);
453 }
454
450 void MessageCenterView::AnimationEnded(const gfx::Animation* animation) { 455 void MessageCenterView::AnimationEnded(const gfx::Animation* animation) {
451 DCHECK_EQ(animation, settings_transition_animation_.get()); 456 DCHECK_EQ(animation, settings_transition_animation_.get());
452 457
453 Visibility visibility = 458 Visibility visibility =
454 mode_ == Mode::SETTINGS ? VISIBILITY_SETTINGS : VISIBILITY_MESSAGE_CENTER; 459 mode_ == Mode::SETTINGS ? VISIBILITY_SETTINGS : VISIBILITY_MESSAGE_CENTER;
455 message_center_->SetVisibility(visibility); 460 message_center_->SetVisibility(visibility);
456 461
457 if (source_view_) { 462 if (source_view_) {
458 source_view_->SetVisible(false); 463 source_view_->SetVisible(false);
459 } 464 }
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 // Disable the close-all button since no notification is visible. 647 // Disable the close-all button since no notification is visible.
643 button_bar_->SetCloseAllButtonEnabled(false); 648 button_bar_->SetCloseAllButtonEnabled(false);
644 } 649 }
645 } 650 }
646 651
647 void MessageCenterView::SetNotificationViewForTest(MessageView* view) { 652 void MessageCenterView::SetNotificationViewForTest(MessageView* view) {
648 message_list_view_->AddNotificationAt(view, 0); 653 message_list_view_->AddNotificationAt(view, 0);
649 } 654 }
650 655
651 } // namespace message_center 656 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/views/message_center_view.h ('k') | ui/message_center/views/message_center_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698