| 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/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 Loading... |
| 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 | |
| 243 void MessageCenterTray::OnNotificationDisplayed( | 238 void MessageCenterTray::OnNotificationDisplayed( |
| 244 const std::string& notification_id, | 239 const std::string& notification_id, |
| 245 const DisplaySource source) { | 240 const DisplaySource source) { |
| 246 NotifyMessageCenterTrayChanged(); | 241 NotifyMessageCenterTrayChanged(); |
| 247 } | 242 } |
| 248 | 243 |
| 249 void MessageCenterTray::OnQuietModeChanged(bool in_quiet_mode) { | 244 void MessageCenterTray::OnQuietModeChanged(bool in_quiet_mode) { |
| 250 NotifyMessageCenterTrayChanged(); | 245 NotifyMessageCenterTrayChanged(); |
| 251 } | 246 } |
| 252 | 247 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 264 ShowPopupBubble(); | 259 ShowPopupBubble(); |
| 265 | 260 |
| 266 NotifyMessageCenterTrayChanged(); | 261 NotifyMessageCenterTrayChanged(); |
| 267 } | 262 } |
| 268 | 263 |
| 269 void MessageCenterTray::NotifyMessageCenterTrayChanged() { | 264 void MessageCenterTray::NotifyMessageCenterTrayChanged() { |
| 270 delegate_->OnMessageCenterTrayChanged(); | 265 delegate_->OnMessageCenterTrayChanged(); |
| 271 } | 266 } |
| 272 | 267 |
| 273 } // namespace message_center | 268 } // namespace message_center |
| OLD | NEW |