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

Unified Diff: ash/system/web_notification/web_notification_tray.cc

Issue 1918183003: mash: Close the system tray bubble on click outside its bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pointerwatcher
Patch Set: rebase Created 4 years, 8 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
« no previous file with comments | « ash/system/web_notification/web_notification_tray.h ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/web_notification/web_notification_tray.cc
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc
index 69694638968580654343609f12976f0f9358abd0..91ae20c33e44e7b764385cda9640fa20ac689d33 100644
--- a/ash/system/web_notification/web_notification_tray.cc
+++ b/ash/system/web_notification/web_notification_tray.cc
@@ -458,13 +458,12 @@ void WebNotificationTray::UpdateTrayContent() {
SchedulePaint();
}
-bool WebNotificationTray::ClickedOutsideBubble() {
+void WebNotificationTray::ClickedOutsideBubble() {
// Only hide the message center
if (!message_center_bubble())
- return false;
+ return;
message_center_tray_->HideMessageCenterBubble();
- return true;
}
message_center::MessageCenter* WebNotificationTray::message_center() const {
« no previous file with comments | « ash/system/web_notification/web_notification_tray.h ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698