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 #ifndef UI_MESSAGE_CENTER_COCOA_POPUP_COLLECTION_H_ | 5 #ifndef UI_MESSAGE_CENTER_COCOA_POPUP_COLLECTION_H_ |
6 #define UI_MESSAGE_CENTER_COCOA_POPUP_COLLECTION_H_ | 6 #define UI_MESSAGE_CENTER_COCOA_POPUP_COLLECTION_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
| 10 #include <memory> |
10 #include <set> | 11 #include <set> |
11 | 12 |
12 #include "base/mac/scoped_block.h" | 13 #include "base/mac/scoped_block.h" |
13 #import "base/mac/scoped_nsobject.h" | 14 #import "base/mac/scoped_nsobject.h" |
14 #import "base/memory/scoped_ptr.h" | |
15 #include "ui/message_center/message_center_export.h" | 15 #include "ui/message_center/message_center_export.h" |
16 | 16 |
17 namespace message_center { | 17 namespace message_center { |
18 class MessageCenter; | 18 class MessageCenter; |
19 class MessageCenterObserver; | 19 class MessageCenterObserver; |
20 } | 20 } |
21 | 21 |
22 namespace message_center { | 22 namespace message_center { |
23 typedef void(^AnimationEndedCallback)(); | 23 typedef void(^AnimationEndedCallback)(); |
24 } | 24 } |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // to a very small value to expedite the test running. | 92 // to a very small value to expedite the test running. |
93 - (void)setAnimationDuration:(NSTimeInterval)duration; | 93 - (void)setAnimationDuration:(NSTimeInterval)duration; |
94 | 94 |
95 // Setter for testingAnimationEndedCallback_. The testing code could set it | 95 // Setter for testingAnimationEndedCallback_. The testing code could set it |
96 // to get called back when the animation ends. | 96 // to get called back when the animation ends. |
97 - (void)setAnimationEndedCallback: | 97 - (void)setAnimationEndedCallback: |
98 (message_center::AnimationEndedCallback)callback; | 98 (message_center::AnimationEndedCallback)callback; |
99 @end | 99 @end |
100 | 100 |
101 #endif // UI_MESSAGE_CENTER_COCOA_POPUP_COLLECTION_H_ | 101 #endif // UI_MESSAGE_CENTER_COCOA_POPUP_COLLECTION_H_ |
OLD | NEW |