| 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_popup_collection.h" | 5 #include "ui/message_center/views/message_popup_collection.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 115 } |
| 116 | 116 |
| 117 void MessagePopupCollection::ClickOnNotificationButton( | 117 void MessagePopupCollection::ClickOnNotificationButton( |
| 118 const std::string& notification_id, | 118 const std::string& notification_id, |
| 119 int button_index) { | 119 int button_index) { |
| 120 message_center_->ClickOnNotificationButton(notification_id, button_index); | 120 message_center_->ClickOnNotificationButton(notification_id, button_index); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void MessagePopupCollection::ClickOnSettingsButton( | 123 void MessagePopupCollection::ClickOnSettingsButton( |
| 124 const std::string& notification_id) { | 124 const std::string& notification_id) { |
| 125 tray_->ShowNotifierSettingsBubble(); | 125 message_center_->ClickOnSettingsButton(notification_id); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void MessagePopupCollection::UpdateNotificationSize( | 128 void MessagePopupCollection::UpdateNotificationSize( |
| 129 const std::string& notification_id) { | 129 const std::string& notification_id) { |
| 130 OnNotificationUpdated(notification_id); | 130 OnNotificationUpdated(notification_id); |
| 131 } | 131 } |
| 132 | 132 |
| 133 void MessagePopupCollection::MarkAllPopupsShown() { | 133 void MessagePopupCollection::MarkAllPopupsShown() { |
| 134 std::set<std::string> closed_ids = CloseAllWidgets(); | 134 std::set<std::string> closed_ids = CloseAllWidgets(); |
| 135 for (std::set<std::string>::iterator iter = closed_ids.begin(); | 135 for (std::set<std::string>::iterator iter = closed_ids.begin(); |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 views::Widget* widget = (*iter)->GetWidget(); | 564 views::Widget* widget = (*iter)->GetWidget(); |
| 565 if (widget) | 565 if (widget) |
| 566 return widget->GetWindowBoundsInScreen(); | 566 return widget->GetWindowBoundsInScreen(); |
| 567 break; | 567 break; |
| 568 } | 568 } |
| 569 } | 569 } |
| 570 return gfx::Rect(); | 570 return gfx::Rect(); |
| 571 } | 571 } |
| 572 | 572 |
| 573 } // namespace message_center | 573 } // namespace message_center |
| OLD | NEW |