summaryrefslogtreecommitdiffstats
path: root/ash/system/web_notification/web_notification_tray.cc
diff options
context:
space:
mode:
authormukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-12 04:45:27 +0000
committermukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-12 04:45:27 +0000
commit3422bf1ca45801282f9540a5be2fa350a3f9e349 (patch)
tree33fef33068b1774598ebef233cdba743af438add /ash/system/web_notification/web_notification_tray.cc
parentae1a2b0c8a2ef824cb62049315ce26def695ca7c (diff)
downloadchromium_src-3422bf1ca45801282f9540a5be2fa350a3f9e349.zip
chromium_src-3422bf1ca45801282f9540a5be2fa350a3f9e349.tar.gz
chromium_src-3422bf1ca45801282f9540a5be2fa350a3f9e349.tar.bz2
Adds an ash global shortcut key for message center.
BUG=172705 TEST=on device, login, and press Shift-Alt-n. Also make sure NOT toggling when login/lock-screens. Review URL: https://chromiumcodereview.appspot.com/12096027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/system/web_notification/web_notification_tray.cc')
-rw-r--r--ash/system/web_notification/web_notification_tray.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc
index 3db837c..7ea81aa 100644
--- a/ash/system/web_notification/web_notification_tray.cc
+++ b/ash/system/web_notification/web_notification_tray.cc
@@ -249,6 +249,11 @@ bool WebNotificationTray::IsMouseInNotificationBubble() const {
Shell::GetScreen()->GetCursorScreenPoint());
}
+void WebNotificationTray::ShowMessageCenterBubble() {
+ if (!IsMessageCenterBubbleVisible())
+ message_center_tray_->ShowMessageCenterBubble();
+}
+
void WebNotificationTray::SetShelfAlignment(ShelfAlignment alignment) {
if (alignment == shelf_alignment())
return;