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

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

Issue 6598057: Split infobar_delegate.[cc,h] into separate pieces for the different classes defined within, so that (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 9 years, 9 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/infobar_delegate.h" 10 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
11 #include "chrome/browser/tab_contents/link_infobar_delegate.h"
11 #import "chrome/browser/ui/cocoa/animatable_view.h" 12 #import "chrome/browser/ui/cocoa/animatable_view.h"
12 #include "chrome/browser/ui/cocoa/event_utils.h" 13 #include "chrome/browser/ui/cocoa/event_utils.h"
13 #include "chrome/browser/ui/cocoa/infobars/infobar.h" 14 #include "chrome/browser/ui/cocoa/infobars/infobar.h"
14 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" 15 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h"
15 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h" 16 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h"
16 #include "skia/ext/skia_utils_mac.h" 17 #include "skia/ext/skia_utils_mac.h"
17 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" 18 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
18 #include "webkit/glue/window_open_disposition.h" 19 #include "webkit/glue/window_open_disposition.h"
19 20
20 namespace { 21 namespace {
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 LinkInfoBarController* controller = 515 LinkInfoBarController* controller =
515 [[LinkInfoBarController alloc] initWithDelegate:this]; 516 [[LinkInfoBarController alloc] initWithDelegate:this];
516 return new InfoBar(controller); 517 return new InfoBar(controller);
517 } 518 }
518 519
519 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar() { 520 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar() {
520 ConfirmInfoBarController* controller = 521 ConfirmInfoBarController* controller =
521 [[ConfirmInfoBarController alloc] initWithDelegate:this]; 522 [[ConfirmInfoBarController alloc] initWithDelegate:this];
522 return new InfoBar(controller); 523 return new InfoBar(controller);
523 } 524 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698