| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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/message_center_export.h" |
| 9 |
| 10 namespace message_center { |
| 11 |
| 12 class MessageCenterController; |
| 13 class MessageView; |
| 14 class Notification; |
| 15 |
| 16 // Creates appropriate MessageViews for notifications depending on the |
| 17 // notification type. A notification is top level if it needs to be rendered |
| 18 // outside the browser window. No custom shadows are created for top level |
| 19 // notifications on Linux with Aura. |
| 20 class MESSAGE_CENTER_EXPORT MessageViewFactory { |
| 21 public: |
| 22 // |controller| may be NULL, but has to be set before the view is shown. |
| 23 static MessageView* Create(MessageCenterController* controller, |
| 24 const Notification& notification, |
| 25 bool top_level); |
| 26 }; |
| 27 |
| 28 } // namespace message_center |
| 29 |
| 30 #endif // UI_MESSAGE_CENTER_MESSAGE_VIEW_FACTORY_H_ |
| OLD | NEW |