 Chromium Code Reviews
 Chromium Code Reviews Issue 142413005:
  Add an empty message to the notification center.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src
    
  
    Issue 142413005:
  Add an empty message to the notification center.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src| 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_TRAY_VIEW_CONTROLLER_H_ | 5 #ifndef UI_MESSAGE_CENTER_COCOA_TRAY_VIEW_CONTROLLER_H_ | 
| 6 #define UI_MESSAGE_CENTER_COCOA_TRAY_VIEW_CONTROLLER_H_ | 6 #define UI_MESSAGE_CENTER_COCOA_TRAY_VIEW_CONTROLLER_H_ | 
| 7 | 7 | 
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> | 
| 9 | 9 | 
| 10 #include <list> | 10 #include <list> | 
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 @private | 39 @private | 
| 40 // Controller of the notifications, where action messages are forwarded. Weak. | 40 // Controller of the notifications, where action messages are forwarded. Weak. | 
| 41 message_center::MessageCenter* messageCenter_; | 41 message_center::MessageCenter* messageCenter_; | 
| 42 | 42 | 
| 43 // The back button shown while the settings are open. | 43 // The back button shown while the settings are open. | 
| 44 base::scoped_nsobject<HoverImageButton> backButton_; | 44 base::scoped_nsobject<HoverImageButton> backButton_; | 
| 45 | 45 | 
| 46 // The "Notifications" label at the top. | 46 // The "Notifications" label at the top. | 
| 47 base::scoped_nsobject<NSTextField> title_; | 47 base::scoped_nsobject<NSTextField> title_; | 
| 48 | 48 | 
| 49 base::scoped_nsobject<NSBox> divider_; | |
| 
Robert Sesek
2014/01/29 16:30:39
Comment please.
 
dewittj
2014/01/29 21:52:25
Done.
 | |
| 50 | |
| 51 // The "Nothing to see here" label in an empty message center. | |
| 52 base::scoped_nsobject<NSTextField> emptyDescription_; | |
| 53 | |
| 49 // The scroll view that contains all the notifications in its documentView. | 54 // The scroll view that contains all the notifications in its documentView. | 
| 50 base::scoped_nsobject<NSScrollView> scrollView_; | 55 base::scoped_nsobject<NSScrollView> scrollView_; | 
| 51 | 56 | 
| 52 // The clip view that manages how scrollView_'s documentView is clipped. | 57 // The clip view that manages how scrollView_'s documentView is clipped. | 
| 53 base::scoped_nsobject<MCClipView> clipView_; | 58 base::scoped_nsobject<MCClipView> clipView_; | 
| 54 | 59 | 
| 55 // Array of MCNotificationController objects, which the array owns. | 60 // Array of MCNotificationController objects, which the array owns. | 
| 56 base::scoped_nsobject<NSMutableArray> notifications_; | 61 base::scoped_nsobject<NSMutableArray> notifications_; | 
| 57 | 62 | 
| 58 // Map of notification IDs to weak pointers of the view controllers in | 63 // Map of notification IDs to weak pointers of the view controllers in | 
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 153 + (CGFloat)trayWidth; | 158 + (CGFloat)trayWidth; | 
| 154 | 159 | 
| 155 @end | 160 @end | 
| 156 | 161 | 
| 157 // Testing API ///////////////////////////////////////////////////////////////// | 162 // Testing API ///////////////////////////////////////////////////////////////// | 
| 158 | 163 | 
| 159 @interface MCTrayViewController (TestingAPI) | 164 @interface MCTrayViewController (TestingAPI) | 
| 160 - (NSScrollView*)scrollView; | 165 - (NSScrollView*)scrollView; | 
| 161 - (HoverImageButton*)pauseButton; | 166 - (HoverImageButton*)pauseButton; | 
| 162 - (HoverImageButton*)clearAllButton; | 167 - (HoverImageButton*)clearAllButton; | 
| 168 - (NSTextField*)emptyDescription; | |
| 
Robert Sesek
2014/01/29 16:30:39
nit: this should match the order of the ivars (in
 
dewittj
2014/01/29 21:52:25
Done.
 | |
| 169 - (NSBox*)divider; | |
| 163 | 170 | 
| 164 // Setter for changing the animation duration. The testing code could set it | 171 // Setter for changing the animation duration. The testing code could set it | 
| 165 // to a very small value to expedite the test running. | 172 // to a very small value to expedite the test running. | 
| 166 - (void)setAnimationDuration:(NSTimeInterval)duration; | 173 - (void)setAnimationDuration:(NSTimeInterval)duration; | 
| 167 | 174 | 
| 168 // Setter for changing the clear-all animation delay. The testing code could set | 175 // Setter for changing the clear-all animation delay. The testing code could set | 
| 169 // it to a very small value to expedite the test running. | 176 // it to a very small value to expedite the test running. | 
| 170 - (void)setAnimateClearingNextNotificationDelay:(NSTimeInterval)delay; | 177 - (void)setAnimateClearingNextNotificationDelay:(NSTimeInterval)delay; | 
| 171 | 178 | 
| 172 // Setter for testingAnimationEndedCallback_. The testing code could set it | 179 // Setter for testingAnimationEndedCallback_. The testing code could set it | 
| 173 // to get called back when the animation ends. | 180 // to get called back when the animation ends. | 
| 174 - (void)setAnimationEndedCallback: | 181 - (void)setAnimationEndedCallback: | 
| 175 (message_center::TrayAnimationEndedCallback)callback; | 182 (message_center::TrayAnimationEndedCallback)callback; | 
| 176 @end | 183 @end | 
| 177 | 184 | 
| 178 #endif // UI_MESSAGE_CENTER_COCOA_TRAY_VIEW_CONTROLLER_H_ | 185 #endif // UI_MESSAGE_CENTER_COCOA_TRAY_VIEW_CONTROLLER_H_ | 
| OLD | NEW |