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 |
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 Loading... |
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 |
OLD | NEW |