OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/notifications/message_center_notification_manager.h" | 5 #include "chrome/browser/notifications/message_center_notification_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/notifications/notification.h" | 10 #include "chrome/browser/notifications/notification.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 void MessageCenterNotificationManager::NotificationRemoved( | 146 void MessageCenterNotificationManager::NotificationRemoved( |
147 const std::string& notification_id) { | 147 const std::string& notification_id) { |
148 NOTIMPLEMENTED(); | 148 NOTIMPLEMENTED(); |
149 } | 149 } |
150 | 150 |
151 void MessageCenterNotificationManager::ShowSettings( | 151 void MessageCenterNotificationManager::ShowSettings( |
152 const std::string& notification_id) { | 152 const std::string& notification_id) { |
153 NOTIMPLEMENTED(); | 153 NOTIMPLEMENTED(); |
154 } | 154 } |
155 | 155 |
| 156 void MessageCenterNotificationManager::ShowSettingsDialog( |
| 157 gfx::NativeView context) { |
| 158 NOTIMPLEMENTED(); |
| 159 } |
| 160 |
156 void MessageCenterNotificationManager::OnClicked( | 161 void MessageCenterNotificationManager::OnClicked( |
157 const std::string& notification_id) { | 162 const std::string& notification_id) { |
158 NOTIMPLEMENTED(); | 163 NOTIMPLEMENTED(); |
159 } | 164 } |
160 | 165 |
161 void MessageCenterNotificationManager::OnButtonClicked( | 166 void MessageCenterNotificationManager::OnButtonClicked( |
162 const std::string& notification_id, int button_index) { | 167 const std::string& notification_id, int button_index) { |
163 NOTIMPLEMENTED(); | 168 NOTIMPLEMENTED(); |
164 } | 169 } |
165 | 170 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 } | 209 } |
205 | 210 |
206 void MessageCenterNotificationManager::RemoveProfileNotification( | 211 void MessageCenterNotificationManager::RemoveProfileNotification( |
207 ProfileNotification* profile_notification) { | 212 ProfileNotification* profile_notification) { |
208 profile_notification->notification().Close(false); // Not by user. | 213 profile_notification->notification().Close(false); // Not by user. |
209 std::string id = profile_notification->notification().notification_id(); | 214 std::string id = profile_notification->notification().notification_id(); |
210 message_center_->RemoveNotification(id); | 215 message_center_->RemoveNotification(id); |
211 profile_notifications_.erase(id); | 216 profile_notifications_.erase(id); |
212 delete profile_notification; | 217 delete profile_notification; |
213 } | 218 } |
OLD | NEW |