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

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

Issue 149433005: Adds a small icon to notifications, and connects it to synced notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits Created 6 years, 11 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 a10a705ab620d20a71f03ddd184e817da7b6f1e6..10e0911d2fc18cf9683fac5739e7683990619d18 100644
--- a/ui/message_center/views/message_view.h
+++ b/ui/message_center/views/message_view.h
@@ -19,6 +19,7 @@ class MenuModel;
namespace views {
class ImageButton;
+class ImageView;
class Painter;
class ScrollView;
}
@@ -48,6 +49,7 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
MessageView(MessageViewController* controller,
const std::string& notification_id,
const NotifierId& notifier_id,
+ const gfx::ImageSkia& small_image,
const base::string16& display_source);
virtual ~MessageView();
@@ -90,6 +92,7 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
// Overridden from views::SlideOutView:
virtual 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_; }
@@ -99,6 +102,7 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
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_;
base::string16 accessible_name_;

Powered by Google App Engine
This is Rietveld 408576698