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

Side by Side Diff: ui/message_center/views/message_center_view.cc

Issue 2129253002: Multi-pod support for lock screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed patch set 9 errors. Created 4 years, 5 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
« no previous file with comments | « ui/message_center/message_center_tray.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « ui/message_center/message_center_tray.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698