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

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

Issue 21118002: Show progress bar notifications for Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 46 // Body text of the message.
47 base::scoped_nsobject<NSTextField> message_; 47 base::scoped_nsobject<NSTextField> message_;
48 48
49 // Container for optional list item views. 49 // Container for optional list item views.
50 base::scoped_nsobject<NSView> listItemView_; 50 base::scoped_nsobject<NSView> listItemView_;
51 51
52 // Container for optional progress bar view.
53 base::scoped_nsobject<NSProgressIndicator> progressBarView_;
54
52 // Container for optional items at the bottom of the notification. 55 // Container for optional items at the bottom of the notification.
53 base::scoped_nsobject<NSView> bottomView_; 56 base::scoped_nsobject<NSView> bottomView_;
54 } 57 }
55 58
56 // Creates a new controller for a given notification. 59 // Creates a new controller for a given notification.
57 - (id)initWithNotification:(const message_center::Notification*)notification 60 - (id)initWithNotification:(const message_center::Notification*)notification
58 messageCenter:(message_center::MessageCenter*)messageCenter; 61 messageCenter:(message_center::MessageCenter*)messageCenter;
59 62
60 // If the model object changes, this method will update the views to reflect 63 // If the model object changes, this method will update the views to reflect
61 // the new model object. Returns the updated frame of the notification. 64 // the new model object. Returns the updated frame of the notification.
(...skipping 13 matching lines...) Expand all
75 // Called when the user clicks within the notification view. 78 // Called when the user clicks within the notification view.
76 - (void)notificationClicked; 79 - (void)notificationClicked;
77 80
78 @end 81 @end
79 82
80 @interface MCNotificationController (TestingInterface) 83 @interface MCNotificationController (TestingInterface)
81 - (NSImageView*)iconView; 84 - (NSImageView*)iconView;
82 @end 85 @end
83 86
84 #endif // UI_MESSAGE_CENTER_COCOA_NOTIFICATION_CONTROLLER_H_ 87 #endif // UI_MESSAGE_CENTER_COCOA_NOTIFICATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/cocoa/notification_controller.mm » ('j') | ui/message_center/cocoa/notification_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698