| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "base/logging.h" // for NOTREACHED() | 7 #include "base/logging.h" // for NOTREACHED() |
| 8 #include "base/mac/mac_util.h" | 8 #include "base/mac/mac_util.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | 10 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 | 502 |
| 503 @end | 503 @end |
| 504 | 504 |
| 505 | 505 |
| 506 ////////////////////////////////////////////////////////////////////////// | 506 ////////////////////////////////////////////////////////////////////////// |
| 507 // CreateInfoBar() implementations | 507 // CreateInfoBar() implementations |
| 508 | 508 |
| 509 InfoBar* LinkInfoBarDelegate::CreateInfoBar(TabContentsWrapper* owner) { | 509 InfoBar* LinkInfoBarDelegate::CreateInfoBar(TabContentsWrapper* owner) { |
| 510 LinkInfoBarController* controller = | 510 LinkInfoBarController* controller = |
| 511 [[LinkInfoBarController alloc] initWithDelegate:this]; | 511 [[LinkInfoBarController alloc] initWithDelegate:this]; |
| 512 return new InfoBar(controller); | 512 return new InfoBar(controller, this); |
| 513 } | 513 } |
| 514 | 514 |
| 515 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(TabContentsWrapper* owner) { | 515 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(TabContentsWrapper* owner) { |
| 516 ConfirmInfoBarController* controller = | 516 ConfirmInfoBarController* controller = |
| 517 [[ConfirmInfoBarController alloc] initWithDelegate:this]; | 517 [[ConfirmInfoBarController alloc] initWithDelegate:this]; |
| 518 return new InfoBar(controller); | 518 return new InfoBar(controller, this); |
| 519 } | 519 } |
| OLD | NEW |