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

Side by Side Diff: chrome/browser/ui/cocoa/infobars/infobar_controller.mm

Issue 6989001: Misc. infobar stuff: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 delegate_->AsConfirmInfoBarDelegate()->LinkClicked(disposition)) 499 delegate_->AsConfirmInfoBarDelegate()->LinkClicked(disposition))
500 [self removeInfoBar]; 500 [self removeInfoBar];
501 } 501 }
502 502
503 @end 503 @end
504 504
505 505
506 ////////////////////////////////////////////////////////////////////////// 506 //////////////////////////////////////////////////////////////////////////
507 // CreateInfoBar() implementations 507 // CreateInfoBar() implementations
508 508
509 InfoBar* LinkInfoBarDelegate::CreateInfoBar() { 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);
513 } 513 }
514 514
515 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar() { 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);
519 } 519 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698