OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "ui/message_center/cocoa/popup_controller.h" | 5 #import "ui/message_center/cocoa/popup_controller.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #import "base/mac/foundation_util.h" | 9 #import "base/mac/foundation_util.h" |
10 #import "base/mac/sdk_forward_declarations.h" | 10 #import "base/mac/sdk_forward_declarations.h" |
11 #import "ui/base/cocoa/window_size_constants.h" | 11 #import "ui/base/cocoa/window_size_constants.h" |
12 #import "ui/message_center/cocoa/notification_controller.h" | 12 #import "ui/message_center/cocoa/notification_controller.h" |
13 #import "ui/message_center/cocoa/popup_collection.h" | 13 #import "ui/message_center/cocoa/popup_collection.h" |
14 #include "ui/message_center/message_center.h" | 14 #include "ui/message_center/message_center.h" |
15 | 15 |
16 #if !defined(MAC_OS_X_VERSION_10_7) || \ | |
17 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | |
18 enum { | |
19 NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8 | |
20 }; | |
21 #endif // MAC_OS_X_VERSION_10_7 | |
22 | |
23 //////////////////////////////////////////////////////////////////////////////// | 16 //////////////////////////////////////////////////////////////////////////////// |
24 | 17 |
25 @interface MCPopupController (Private) | 18 @interface MCPopupController (Private) |
26 - (void)notificationSwipeStarted; | 19 - (void)notificationSwipeStarted; |
27 - (void)notificationSwipeMoved:(CGFloat)amount; | 20 - (void)notificationSwipeMoved:(CGFloat)amount; |
28 - (void)notificationSwipeEnded:(BOOL)ended complete:(BOOL)isComplete; | 21 - (void)notificationSwipeEnded:(BOOL)ended complete:(BOOL)isComplete; |
29 @end | 22 @end |
30 | 23 |
31 // Window Subclass ///////////////////////////////////////////////////////////// | 24 // Window Subclass ///////////////////////////////////////////////////////////// |
32 | 25 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 266 |
274 - (void)mouseEntered:(NSEvent*)event { | 267 - (void)mouseEntered:(NSEvent*)event { |
275 messageCenter_->PausePopupTimers(); | 268 messageCenter_->PausePopupTimers(); |
276 } | 269 } |
277 | 270 |
278 - (void)mouseExited:(NSEvent*)event { | 271 - (void)mouseExited:(NSEvent*)event { |
279 messageCenter_->RestartPopupTimers(); | 272 messageCenter_->RestartPopupTimers(); |
280 } | 273 } |
281 | 274 |
282 @end | 275 @end |
OLD | NEW |