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

Side by Side Diff: ui/message_center/message_center_tray.cc

Issue 2807623002: Fix the settings button and UMA metrics for the message center (Closed)
Patch Set: Created 3 years, 8 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.h ('k') | ui/message_center/notification_delegate.h » ('j') | 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/message_center_tray.h" 5 #include "ui/message_center/message_center_tray.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 OnMessageCenterChanged(); 228 OnMessageCenterChanged();
229 } 229 }
230 230
231 void MessageCenterTray::OnNotificationButtonClicked( 231 void MessageCenterTray::OnNotificationButtonClicked(
232 const std::string& notification_id, 232 const std::string& notification_id,
233 int button_index) { 233 int button_index) {
234 if (popups_visible_) 234 if (popups_visible_)
235 OnMessageCenterChanged(); 235 OnMessageCenterChanged();
236 } 236 }
237 237
238 void MessageCenterTray::OnNotificationSettingsClicked(bool handled) {
239 if (!handled)
240 ShowNotifierSettingsBubble();
241 }
242
238 void MessageCenterTray::OnNotificationDisplayed( 243 void MessageCenterTray::OnNotificationDisplayed(
239 const std::string& notification_id, 244 const std::string& notification_id,
240 const DisplaySource source) { 245 const DisplaySource source) {
241 NotifyMessageCenterTrayChanged(); 246 NotifyMessageCenterTrayChanged();
242 } 247 }
243 248
244 void MessageCenterTray::OnQuietModeChanged(bool in_quiet_mode) { 249 void MessageCenterTray::OnQuietModeChanged(bool in_quiet_mode) {
245 NotifyMessageCenterTrayChanged(); 250 NotifyMessageCenterTrayChanged();
246 } 251 }
247 252
(...skipping 11 matching lines...) Expand all
259 ShowPopupBubble(); 264 ShowPopupBubble();
260 265
261 NotifyMessageCenterTrayChanged(); 266 NotifyMessageCenterTrayChanged();
262 } 267 }
263 268
264 void MessageCenterTray::NotifyMessageCenterTrayChanged() { 269 void MessageCenterTray::NotifyMessageCenterTrayChanged() {
265 delegate_->OnMessageCenterTrayChanged(); 270 delegate_->OnMessageCenterTrayChanged();
266 } 271 }
267 272
268 } // namespace message_center 273 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/message_center_tray.h ('k') | ui/message_center/notification_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698