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

Unified Diff: ui/message_center/message_center_tray.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/message_center.gyp ('k') | ui/message_center/message_center_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_center_tray.h
diff --git a/ui/message_center/message_center_tray.h b/ui/message_center/message_center_tray.h
index fed4eb1433711376aba9bd922a1df8efd472ef37..278eb2eb6dc35c348604d0bf0a999054cef3a0ad 100644
--- a/ui/message_center/message_center_tray.h
+++ b/ui/message_center/message_center_tray.h
@@ -6,9 +6,15 @@
#define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
#include "base/observer_list.h"
+#include "base/strings/string16.h"
#include "ui/message_center/message_center_export.h"
#include "ui/message_center/message_center_observer.h"
#include "ui/message_center/message_center_tray_delegate.h"
+#include "ui/message_center/notifier_settings.h"
+
+namespace ui {
+class MenuModel;
+}
namespace message_center {
@@ -54,6 +60,11 @@ class MESSAGE_CENTER_EXPORT MessageCenterTray : public MessageCenterObserver {
// Toggles the visibility of the settings view in the message center bubble.
void ShowNotifierSettingsBubble();
+ // Creates a model for the context menu for a notification card.
+ scoped_ptr<ui::MenuModel> CreateNotificationMenuModel(
+ const NotifierId& notifier_id,
+ const base::string16& display_source);
+
bool message_center_visible() { return message_center_visible_; }
bool popups_visible() { return popups_visible_; }
MessageCenterTrayDelegate* delegate() { return delegate_; }
« no previous file with comments | « ui/message_center/message_center.gyp ('k') | ui/message_center/message_center_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698