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_NOTIFICATION_CONTROLLER_H_ | 5 #ifndef UI_MESSAGE_CENTER_COCOA_NOTIFICATION_CONTROLLER_H_ |
6 #define UI_MESSAGE_CENTER_COCOA_NOTIFICATION_CONTROLLER_H_ | 6 #define UI_MESSAGE_CENTER_COCOA_NOTIFICATION_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 // The large icon associated with the notification, on the left side. | 40 // The large icon associated with the notification, on the left side. |
41 base::scoped_nsobject<NSImageView> icon_; | 41 base::scoped_nsobject<NSImageView> icon_; |
42 | 42 |
43 // The title of the message. | 43 // The title of the message. |
44 base::scoped_nsobject<NSTextField> title_; | 44 base::scoped_nsobject<NSTextField> title_; |
45 | 45 |
46 // Body text of the message. Hidden for list notifications. | 46 // Body text of the message. Hidden for list notifications. |
47 base::scoped_nsobject<NSTextField> message_; | 47 base::scoped_nsobject<NSTextField> message_; |
48 | 48 |
49 // Context-giving text of the message. Alternate font used to distinguish it. | |
50 base::scoped_nsobject<NSTextField> contextMessage_; | |
51 | |
52 // Container for optional list item views. | 49 // Container for optional list item views. |
53 base::scoped_nsobject<NSView> listItemView_; | 50 base::scoped_nsobject<NSView> listItemView_; |
54 | 51 |
55 // Container for optional progress bar view. | 52 // Container for optional progress bar view. |
56 base::scoped_nsobject<NSProgressIndicator> progressBarView_; | 53 base::scoped_nsobject<NSProgressIndicator> progressBarView_; |
57 | 54 |
58 // Container for optional items at the bottom of the notification. | 55 // Container for optional items at the bottom of the notification. |
59 base::scoped_nsobject<NSView> bottomView_; | 56 base::scoped_nsobject<NSView> bottomView_; |
60 } | 57 } |
61 | 58 |
(...skipping 19 matching lines...) Expand all Loading... |
81 // Called when the user clicks within the notification view. | 78 // Called when the user clicks within the notification view. |
82 - (void)notificationClicked; | 79 - (void)notificationClicked; |
83 | 80 |
84 @end | 81 @end |
85 | 82 |
86 @interface MCNotificationController (TestingInterface) | 83 @interface MCNotificationController (TestingInterface) |
87 - (NSImageView*)iconView; | 84 - (NSImageView*)iconView; |
88 @end | 85 @end |
89 | 86 |
90 #endif // UI_MESSAGE_CENTER_COCOA_NOTIFICATION_CONTROLLER_H_ | 87 #endif // UI_MESSAGE_CENTER_COCOA_NOTIFICATION_CONTROLLER_H_ |
OLD | NEW |