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 #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 Loading... |
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 |
OLD | NEW |