Chromium Code Reviews| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 (*iter)->id(), message_center::DISPLAY_SOURCE_MESSAGE_CENTER); | 149 (*iter)->id(), message_center::DISPLAY_SOURCE_MESSAGE_CENTER); |
| 150 if (notification_views_.size() >= kMaxVisibleMessageCenterNotifications) | 150 if (notification_views_.size() >= kMaxVisibleMessageCenterNotifications) |
| 151 break; | 151 break; |
| 152 } | 152 } |
| 153 | 153 |
| 154 Update(false /* animate */); | 154 Update(false /* animate */); |
| 155 scroller_->RequestFocus(); | 155 scroller_->RequestFocus(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 void MessageCenterView::SetSettingsVisible(bool visible) { | 158 void MessageCenterView::SetSettingsVisible(bool visible) { |
| 159 LOG(ERROR) << "ERMMMM"; | |
|
jdufault
2016/07/21 20:59:50
Revert all of these LOG messages.
sammiequon
2016/07/21 22:03:30
Done.
| |
| 159 settings_visible_ = visible; | 160 settings_visible_ = visible; |
| 160 Update(true /* animate */); | 161 Update(true /* animate */); |
| 161 } | 162 } |
| 162 | 163 |
| 163 void MessageCenterView::ClearAllClosableNotifications() { | 164 void MessageCenterView::ClearAllClosableNotifications() { |
| 164 if (is_closing_) | 165 if (is_closing_) |
| 165 return; | 166 return; |
| 166 | 167 |
| 167 is_clearing_ = true; | 168 is_clearing_ = true; |
| 168 UpdateButtonBarStatus(); | 169 UpdateButtonBarStatus(); |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 623 // Disable the close-all button since no notification is visible. | 624 // Disable the close-all button since no notification is visible. |
| 624 button_bar_->SetCloseAllButtonEnabled(false); | 625 button_bar_->SetCloseAllButtonEnabled(false); |
| 625 } | 626 } |
| 626 } | 627 } |
| 627 | 628 |
| 628 void MessageCenterView::SetNotificationViewForTest(MessageView* view) { | 629 void MessageCenterView::SetNotificationViewForTest(MessageView* view) { |
| 629 message_list_view_->AddNotificationAt(view, 0); | 630 message_list_view_->AddNotificationAt(view, 0); |
| 630 } | 631 } |
| 631 | 632 |
| 632 } // namespace message_center | 633 } // namespace message_center |
| OLD | NEW |