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

Unified Diff: ui/message_center/cocoa/tray_controller.h

Issue 16098005: [Mac][MC] Close the tray window when the user clicks outside it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « no previous file | ui/message_center/cocoa/tray_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/cocoa/tray_controller.h
diff --git a/ui/message_center/cocoa/tray_controller.h b/ui/message_center/cocoa/tray_controller.h
index 622635a6488183e5489a0f74fb8a3599deec3e15..82cc5f3e7f7353a55466c574b896d21342840bae 100644
--- a/ui/message_center/cocoa/tray_controller.h
+++ b/ui/message_center/cocoa/tray_controller.h
@@ -26,6 +26,10 @@ MESSAGE_CENTER_EXPORT
// View controller that provides this window's content.
scoped_nsobject<MCTrayViewController> viewController_;
+
+ // An event monitor that listens for clicks outside the tray window to cause
+ // it to close.
+ id clickEventMonitor_;
}
// Designated initializer.
« no previous file with comments | « no previous file | ui/message_center/cocoa/tray_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698