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

Unified Diff: ui/message_center/views/message_view.h

Issue 1645843003: Implement Non-Closable Notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary property. Created 4 years, 10 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
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 47840df6b8f0e47dfb7043a363dda36e3d4d7ff3..6a4754e179c68214266b21b69390877c0b4116c0 100644
--- a/ui/message_center/views/message_view.h
+++ b/ui/message_center/views/message_view.h
@@ -46,8 +46,8 @@ const int kPaddingHorizontal = 18;
const int kWebNotificationButtonWidth = 32;
const int kWebNotificationIconSize = 40;
-// An base class for a notification entry. Contains background, close button
-// and other elements shared by derived notification views.
+// An base class for a notification entry. Contains background and other
+// elements shared by derived notification views.
class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
public views::ButtonListener {
public:
@@ -67,8 +67,9 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
// Creates a shadow around the notification.
void CreateShadowBorder();
- bool IsCloseButtonFocused();
- void RequestFocusOnCloseButton();
+ virtual bool IsCloseButtonFocused();
+ virtual void RequestFocusOnCloseButton();
+ virtual bool IsPinned();
void set_accessible_name(const base::string16& accessible_name) {
accessible_name_ = accessible_name;
@@ -100,7 +101,6 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
void OnSlideOut() override;
views::ImageView* small_image() { return small_image_view_.get(); }
- views::ImageButton* close_button() { return close_button_.get(); }
views::ScrollView* scroller() { return scroller_; }
private:
@@ -108,7 +108,6 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
std::string notification_id_;
NotifierId notifier_id_;
views::View* background_view_; // Owned by views hierarchy.
- scoped_ptr<views::ImageButton> close_button_;
scoped_ptr<views::ImageView> small_image_view_;
views::ScrollView* scroller_;
« no previous file with comments | « ui/message_center/views/message_popup_collection_unittest.cc ('k') | ui/message_center/views/message_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698