| 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 } | 467 } |
| 468 | 468 |
| 469 void MessageCenterView::ClickOnNotificationButton( | 469 void MessageCenterView::ClickOnNotificationButton( |
| 470 const std::string& notification_id, | 470 const std::string& notification_id, |
| 471 int button_index) { | 471 int button_index) { |
| 472 message_center_->ClickOnNotificationButton(notification_id, button_index); | 472 message_center_->ClickOnNotificationButton(notification_id, button_index); |
| 473 } | 473 } |
| 474 | 474 |
| 475 void MessageCenterView::ClickOnSettingsButton( | 475 void MessageCenterView::ClickOnSettingsButton( |
| 476 const std::string& notification_id) { | 476 const std::string& notification_id) { |
| 477 tray_->ShowNotifierSettingsBubble(); | 477 message_center_->ClickOnSettingsButton(notification_id); |
| 478 } | 478 } |
| 479 | 479 |
| 480 void MessageCenterView::UpdateNotificationSize( | 480 void MessageCenterView::UpdateNotificationSize( |
| 481 const std::string& notification_id) { | 481 const std::string& notification_id) { |
| 482 OnNotificationUpdated(notification_id); | 482 OnNotificationUpdated(notification_id); |
| 483 } | 483 } |
| 484 | 484 |
| 485 void MessageCenterView::AnimationEnded(const gfx::Animation* animation) { | 485 void MessageCenterView::AnimationEnded(const gfx::Animation* animation) { |
| 486 DCHECK_EQ(animation, settings_transition_animation_.get()); | 486 DCHECK_EQ(animation, settings_transition_animation_.get()); |
| 487 | 487 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 // Disable the close-all button since no notification is visible. | 665 // Disable the close-all button since no notification is visible. |
| 666 button_bar_->SetCloseAllButtonEnabled(false); | 666 button_bar_->SetCloseAllButtonEnabled(false); |
| 667 } | 667 } |
| 668 } | 668 } |
| 669 | 669 |
| 670 void MessageCenterView::SetNotificationViewForTest(MessageView* view) { | 670 void MessageCenterView::SetNotificationViewForTest(MessageView* view) { |
| 671 message_list_view_->AddNotificationAt(view, 0); | 671 message_list_view_->AddNotificationAt(view, 0); |
| 672 } | 672 } |
| 673 | 673 |
| 674 } // namespace message_center | 674 } // namespace message_center |
| OLD | NEW |