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

Side by Side Diff: ui/message_center/cocoa/popup_controller.mm

Issue 14598015: [Mac][MC] Implement notification updates and relayouts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 #import "ui/message_center/cocoa/popup_controller.h" 5 #import "ui/message_center/cocoa/popup_controller.h"
6 6
7 #import "ui/base/cocoa/window_size_constants.h" 7 #import "ui/base/cocoa/window_size_constants.h"
8 #import "ui/message_center/cocoa/notification_controller.h" 8 #import "ui/message_center/cocoa/notification_controller.h"
9 #include "ui/message_center/message_center.h" 9 #include "ui/message_center/message_center.h"
10 10
(...skipping 25 matching lines...) Expand all
36 NSWindowCollectionBehaviorIgnoresCycle | 36 NSWindowCollectionBehaviorIgnoresCycle |
37 NSWindowCollectionBehaviorFullScreenAuxiliary]; 37 NSWindowCollectionBehaviorFullScreenAuxiliary];
38 38
39 [window setHasShadow:YES]; 39 [window setHasShadow:YES];
40 [window setFrame:[[notificationController_ view] frame] display:NO]; 40 [window setFrame:[[notificationController_ view] frame] display:NO];
41 [window setContentView:[notificationController_ view]]; 41 [window setContentView:[notificationController_ view]];
42 } 42 }
43 return self; 43 return self;
44 } 44 }
45 45
46 - (MCNotificationController*)notificationController {
47 return notificationController_.get();
48 }
49
46 - (const message_center::Notification*)notification { 50 - (const message_center::Notification*)notification {
47 return [notificationController_ notification]; 51 return [notificationController_ notification];
48 } 52 }
49 53
50 - (const std::string&)notificationID { 54 - (const std::string&)notificationID {
51 return [notificationController_ notificationID]; 55 return [notificationController_ notificationID];
52 } 56 }
53 57
54 @end 58 @end
OLDNEW
« ui/message_center/cocoa/popup_collection.mm ('K') | « ui/message_center/cocoa/popup_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698