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

Unified Diff: chrome/browser/ui/views/message_center/web_notification_tray.cc

Issue 114323002: Fixes the context menu for a notification. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/ui/views/message_center/web_notification_tray.cc
diff --git a/chrome/browser/ui/views/message_center/web_notification_tray.cc b/chrome/browser/ui/views/message_center/web_notification_tray.cc
index 7268b5d144c6430203caf727abc56ac9f471f59e..fb4e8b118aa0a9b38d46d3193502591128dbfb11 100644
--- a/chrome/browser/ui/views/message_center/web_notification_tray.cc
+++ b/chrome/browser/ui/views/message_center/web_notification_tray.cc
@@ -191,6 +191,12 @@ bool WebNotificationTray::ShowNotifierSettings() {
return true;
}
+bool WebNotificationTray::IsContextMenuEnabled() const {
+ // It can always return true because the notifications are invisible if
+ // the context menu shouldn't be enabled, such like lock screen.
stevenjb 2013/12/12 21:19:46 nit: s/such like/such as in the/
Jun Mukai 2013/12/14 01:13:14 Done.
+ return true;
+}
+
void WebNotificationTray::OnMessageCenterTrayChanged() {
if (status_icon_) {
bool quiet_mode_state = message_center()->IsQuietMode();

Powered by Google App Engine
This is Rietveld 408576698