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

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

Issue 15757005: [Mac][MC] Allow popup notifications to be dismissed with a swipe gesture. (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
Index: ui/message_center/cocoa/popup_controller.h
diff --git a/ui/message_center/cocoa/popup_controller.h b/ui/message_center/cocoa/popup_controller.h
index 057756730591d6737ecbd88ef7da127f8efe321d..f16f03aad7b494bf773f8ea5ba4b910aaea58fcd 100644
--- a/ui/message_center/cocoa/popup_controller.h
+++ b/ui/message_center/cocoa/popup_controller.h
@@ -25,7 +25,18 @@ class Notification;
MESSAGE_CENTER_EXPORT
@interface MCPopupController : NSWindowController {
@private
+ // Global message center. Weak.
+ message_center::MessageCenter* messageCenter_;
+
+ // The view controller that provide's the popup content view.
scoped_nsobject<MCNotificationController> notificationController_;
+
+ // If the swipe-away gesture received NSEventPhaseEnded.
+ BOOL swipeGestureEnded_;
+
+ // The frame of the popup before any swipe animation started. Used to
+ // calculate the animating position of the window when swiping away.
+ NSRect originalFrame_;
}
// Designated initializer.
« no previous file with comments | « no previous file | ui/message_center/cocoa/popup_controller.mm » ('j') | ui/message_center/cocoa/popup_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698