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

Unified Diff: ash/system/tray/system_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/tray/system_tray.h ('k') | ash/system/tray/tray_background_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index f2c2e06f3fb1393ae8727b091878f6eaef71f5da..d77b65a412fbcadce670f8104fd3113cb916dd16 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -653,11 +653,10 @@ void SystemTray::HideBubbleWithView(const TrayBubbleView* bubble_view) {
}
}
-bool SystemTray::ClickedOutsideBubble() {
+void SystemTray::ClickedOutsideBubble() {
if (!system_bubble_ || system_bubble_->is_persistent())
- return false;
+ return;
HideBubbleWithView(system_bubble_->bubble_view());
- return true;
}
void SystemTray::BubbleViewDestroyed() {
« no previous file with comments | « ash/system/tray/system_tray.h ('k') | ash/system/tray/tray_background_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698