Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: ui/message_center/views/message_view_factory.h

Issue 1979583003: Support notifications with custom content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@messageview-close-button
Patch Set: fix mac build, attempt 2 Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/message_center/views/message_view.h ('k') | ui/message_center/views/message_view_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ui/message_center/views/message_view.h ('k') | ui/message_center/views/message_view_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698