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

Unified Diff: ui/message_center/views/message_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/message_center/views/message_popup_collection.cc ('k') | ui/message_center/views/message_view_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_view.h
diff --git a/ui/message_center/views/message_view.h b/ui/message_center/views/message_view.h
index 07da4e57285798824346c8274645bbab7392861e..bc53cae29638016018d0e0127017fbf228ab9fb7 100644
--- a/ui/message_center/views/message_view.h
+++ b/ui/message_center/views/message_view.h
@@ -100,16 +100,17 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
// it is on top of other views.
void CreateOrUpdateCloseButtonView(const Notification& notification);
+ // Changes the background color being used by |background_view_| and schedules
+ // a paint.
+ virtual void SetDrawBackgroundAsActive(bool active);
+
+ views::View* background_view() { return background_view_; }
views::ImageView* small_image() { return small_image_view_.get(); }
views::ImageButton* close_button() { return close_button_.get(); }
views::ScrollView* scroller() { return scroller_; }
MessageCenterController* controller() { return controller_; }
private:
- // Changes the background color being used by |background_view_| and schedules
- // a paint.
- void SetDrawBackgroundAsActive(bool active);
-
MessageCenterController* controller_; // Weak, lives longer then views.
std::string notification_id_;
NotifierId notifier_id_;
« no previous file with comments | « ui/message_center/views/message_popup_collection.cc ('k') | ui/message_center/views/message_view_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698