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 |
49 // Container for optional list item views. | 52 // Container for optional list item views. |
50 base::scoped_nsobject<NSView> listItemView_; | 53 base::scoped_nsobject<NSView> listItemView_; |
51 | 54 |
52 // Container for optional progress bar view. | 55 // Container for optional progress bar view. |
53 base::scoped_nsobject<NSProgressIndicator> progressBarView_; | 56 base::scoped_nsobject<NSProgressIndicator> progressBarView_; |
54 | 57 |
55 // Container for optional items at the bottom of the notification. | 58 // Container for optional items at the bottom of the notification. |
56 base::scoped_nsobject<NSView> bottomView_; | 59 base::scoped_nsobject<NSView> bottomView_; |
57 } | 60 } |
58 | 61 |
(...skipping 19 matching lines...) Expand all Loading... |
78 // Called when the user clicks within the notification view. | 81 // Called when the user clicks within the notification view. |
79 - (void)notificationClicked; | 82 - (void)notificationClicked; |
80 | 83 |
81 @end | 84 @end |
82 | 85 |
83 @interface MCNotificationController (TestingInterface) | 86 @interface MCNotificationController (TestingInterface) |
84 - (NSImageView*)iconView; | 87 - (NSImageView*)iconView; |
85 @end | 88 @end |
86 | 89 |
87 #endif // UI_MESSAGE_CENTER_COCOA_NOTIFICATION_CONTROLLER_H_ | 90 #endif // UI_MESSAGE_CENTER_COCOA_NOTIFICATION_CONTROLLER_H_ |
OLD | NEW |