| 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 #include "base/mac/mac_util.h" | 8 #include "base/mac/mac_util.h" |
| 9 #import "base/memory/scoped_nsobject.h" | 9 #import "base/mac/scoped_nsobject.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "chrome/browser/notifications/balloon.h" | 11 #include "chrome/browser/notifications/balloon.h" |
| 12 #include "chrome/browser/notifications/desktop_notification_service.h" | 12 #include "chrome/browser/notifications/desktop_notification_service.h" |
| 13 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 13 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
| 14 #include "chrome/browser/notifications/notification.h" | 14 #include "chrome/browser/notifications/notification.h" |
| 15 #include "chrome/browser/notifications/notification_options_menu_model.h" | 15 #include "chrome/browser/notifications/notification_options_menu_model.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #import "chrome/browser/ui/cocoa/notifications/balloon_view.h" | 17 #import "chrome/browser/ui/cocoa/notifications/balloon_view.h" |
| 18 #include "chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.h" | 18 #include "chrome/browser/ui/cocoa/notifications/balloon_view_host_mac.h" |
| 19 #include "content/public/browser/render_view_host.h" | 19 #include "content/public/browser/render_view_host.h" |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 htmlContents_.reset(new BalloonViewHost(balloon_)); | 216 htmlContents_.reset(new BalloonViewHost(balloon_)); |
| 217 htmlContents_->Init(); | 217 htmlContents_->Init(); |
| 218 } | 218 } |
| 219 | 219 |
| 220 // NSWindowDelegate notification. | 220 // NSWindowDelegate notification. |
| 221 - (void)windowWillClose:(NSNotification*)notif { | 221 - (void)windowWillClose:(NSNotification*)notif { |
| 222 [self autorelease]; | 222 [self autorelease]; |
| 223 } | 223 } |
| 224 | 224 |
| 225 @end | 225 @end |
| OLD | NEW |