| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_VIEW_FACTORY_H_ | |
| 6 #define UI_MESSAGE_CENTER_MESSAGE_VIEW_FACTORY_H_ | |
| 7 | |
| 8 #include "ui/message_center/notification_list.h" | |
| 9 | |
| 10 namespace message_center { | |
| 11 | |
| 12 class MessageView; | |
| 13 | |
| 14 // Creates appropriate MessageViews for Notifications. The factory | |
| 15 // examines notification.type and uses that as a 1:1 mapping from type enum to | |
| 16 // concrete MessageView class. | |
| 17 class MessageViewFactory { | |
| 18 public: | |
| 19 static MessageView* ViewForNotification( | |
| 20 const NotificationList::Notification& notification, | |
| 21 NotificationList::Delegate* list_delegate); | |
| 22 }; | |
| 23 | |
| 24 } // namespace message_center | |
| 25 | |
| 26 #endif // UI_MESSAGE_CENTER_WEB_MESSAGE_VIEW_FACTORY_H_ | |
| OLD | NEW |