OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/cocoa/notifications/balloon_controller.h" | 5 #include "chrome/browser/ui/cocoa/notifications/balloon_controller.h" |
6 | 6 |
7 #include "base/mac/bundle_locations.h" | 7 #include "base/mac/bundle_locations.h" |
8 #import "base/mac/cocoa_protocols.h" | |
9 #include "base/mac/mac_util.h" | 8 #include "base/mac/mac_util.h" |
10 #import "base/memory/scoped_nsobject.h" | 9 #import "base/memory/scoped_nsobject.h" |
11 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/notifications/balloon.h" | 11 #include "chrome/browser/notifications/balloon.h" |
13 #include "chrome/browser/notifications/desktop_notification_service.h" | 12 #include "chrome/browser/notifications/desktop_notification_service.h" |
14 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 13 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
15 #include "chrome/browser/notifications/notification.h" | 14 #include "chrome/browser/notifications/notification.h" |
16 #include "chrome/browser/notifications/notification_options_menu_model.h" | 15 #include "chrome/browser/notifications/notification_options_menu_model.h" |
17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
18 #import "chrome/browser/ui/cocoa/hover_image_button.h" | 17 #import "chrome/browser/ui/cocoa/hover_image_button.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 htmlContents_.reset(new BalloonViewHost(balloon_)); | 217 htmlContents_.reset(new BalloonViewHost(balloon_)); |
219 htmlContents_->Init(); | 218 htmlContents_->Init(); |
220 } | 219 } |
221 | 220 |
222 // NSWindowDelegate notification. | 221 // NSWindowDelegate notification. |
223 - (void)windowWillClose:(NSNotification*)notif { | 222 - (void)windowWillClose:(NSNotification*)notif { |
224 [self autorelease]; | 223 [self autorelease]; |
225 } | 224 } |
226 | 225 |
227 @end | 226 @end |
OLD | NEW |