| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |