Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: ui/message_center/cocoa/notification_controller.h

Issue 149433005: Adds a small icon to notifications, and connects it to synced notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 19 matching lines...) Expand all
30 30
31 // A copy of the notification ID. 31 // A copy of the notification ID.
32 std::string notificationID_; 32 std::string notificationID_;
33 33
34 // Controller of the notifications, where action messages are forwarded. Weak. 34 // Controller of the notifications, where action messages are forwarded. Weak.
35 message_center::MessageCenter* messageCenter_; 35 message_center::MessageCenter* messageCenter_;
36 36
37 // The button that invokes |-close:|, in the upper-right corner. 37 // The button that invokes |-close:|, in the upper-right corner.
38 base::scoped_nsobject<HoverImageButton> closeButton_; 38 base::scoped_nsobject<HoverImageButton> closeButton_;
39 39
40 // The small icon associated with the notification, on the bottom right.
41 base::scoped_nsobject<NSImageView> smallImage_;
42
40 // The large icon associated with the notification, on the left side. 43 // The large icon associated with the notification, on the left side.
41 base::scoped_nsobject<NSImageView> icon_; 44 base::scoped_nsobject<NSImageView> icon_;
42 45
43 // The title of the message. 46 // The title of the message.
44 base::scoped_nsobject<NSTextView> title_; 47 base::scoped_nsobject<NSTextView> title_;
45 48
46 // Body text of the message. Hidden for list notifications. 49 // Body text of the message. Hidden for list notifications.
47 base::scoped_nsobject<NSTextView> message_; 50 base::scoped_nsobject<NSTextView> message_;
48 51
49 // Context-giving text of the message. Alternate font used to distinguish it. 52 // Context-giving text of the message. Alternate font used to distinguish it.
(...skipping 27 matching lines...) Expand all
77 // rather than the model object, so it's safe to use after the Notification has 80 // rather than the model object, so it's safe to use after the Notification has
78 // been deleted. 81 // been deleted.
79 - (const std::string&)notificationID; 82 - (const std::string&)notificationID;
80 83
81 // Called when the user clicks within the notification view. 84 // Called when the user clicks within the notification view.
82 - (void)notificationClicked; 85 - (void)notificationClicked;
83 86
84 @end 87 @end
85 88
86 @interface MCNotificationController (TestingInterface) 89 @interface MCNotificationController (TestingInterface)
90 - (NSImageView*)smallImageView;
87 - (NSImageView*)iconView; 91 - (NSImageView*)iconView;
88 @end 92 @end
89 93
90 #endif // UI_MESSAGE_CENTER_COCOA_NOTIFICATION_CONTROLLER_H_ 94 #endif // UI_MESSAGE_CENTER_COCOA_NOTIFICATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698