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

Side by Side Diff: ui/message_center/views/custom_notification_view.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
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_VIEWS_CUSTOM_NOTIFICATION_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_CUSTOM_NOTIFICATION_VIEW_H_
7
8 #include "base/macros.h"
9 #include "ui/message_center/message_center_export.h"
10 #include "ui/message_center/views/message_view.h"
11
12 namespace message_center {
13
14 // View for notification with NOTIFICATION_TYPE_CUSTOM that hosts the custom
15 // content of the notification.
16 class MESSAGE_CENTER_EXPORT CustomNotificationView : public MessageView {
17 public:
18 CustomNotificationView(MessageCenterController* controller,
19 const Notification& notification);
20 ~CustomNotificationView() override;
21
22 // Overidden from MessageView:
23 void SetDrawBackgroundAsActive(bool active) override;
24
25 // Overridden from views::View:
26 gfx::Size GetPreferredSize() const override;
27 void Layout() override;
28
29 private:
30 friend class CustomNotificationViewTest;
31
32 // The view for the custom content. Owned by view hierarchy.
33 views::View* contents_view_ = nullptr;
34
35 DISALLOW_COPY_AND_ASSIGN(CustomNotificationView);
36 };
37
38 } // namespace message_center
39
40 #endif // UI_MESSAGE_CENTER_VIEWS_CUSTOM_NOTIFICATION_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/notification_types.h ('k') | ui/message_center/views/custom_notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698