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

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

Issue 114323002: Fixes the context menu for a notification. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix2 Created 7 years 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.cc » ('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 a356c1d80a850b6a3ce474c02a0ccd7865ae8836..fc2b161703bd1c45f4a9ec0c8c73d7d9449c5182 100644
--- a/ui/message_center/views/message_view.h
+++ b/ui/message_center/views/message_view.h
@@ -13,6 +13,10 @@
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/slide_out_view.h"
+namespace ui {
+class MenuModel;
+}
+
namespace views {
class ImageButton;
class Painter;
@@ -28,13 +32,8 @@ class MessageViewController {
virtual void ClickOnNotification(const std::string& notification_id) = 0;
virtual void RemoveNotification(const std::string& notification_id,
bool by_user) = 0;
- virtual void DisableNotificationsFromThisSource(
- const NotifierId& notifier_id) = 0;
- virtual void ShowNotifierSettingsBubble() = 0;
};
-class MessageViewContextMenuController;
-
// Individual notifications constants.
const int kPaddingBetweenItems = 10;
const int kPaddingHorizontal = 18;
@@ -83,6 +82,7 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
void set_scroller(views::ScrollView* scroller) { scroller_ = scroller; }
std::string notification_id() { return notification_id_; }
NotifierId notifier_id() { return notifier_id_; }
+ const base::string16& display_source() const { return display_source_; }
protected:
// Overridden from views::SlideOutView:
@@ -95,13 +95,14 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
MessageViewController* controller_;
std::string notification_id_;
NotifierId notifier_id_;
- scoped_ptr<MessageViewContextMenuController> context_menu_controller_;
views::View* background_view_; // Owned by views hierarchy.
scoped_ptr<views::ImageButton> close_button_;
views::ScrollView* scroller_;
string16 accessible_name_;
+ base::string16 display_source_;
+
scoped_ptr<views::Painter> focus_painter_;
DISALLOW_COPY_AND_ASSIGN(MessageView);
« no previous file with comments | « ui/message_center/views/message_popup_collection.cc ('k') | ui/message_center/views/message_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698