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

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

Issue 10534093: TabContentsWrapper -> TabContents, part 37. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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) 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 #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/bundle_locations.h" 8 #include "base/mac/bundle_locations.h"
9 #include "base/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
11 #include "chrome/browser/infobars/infobar_tab_helper.h" 11 #include "chrome/browser/infobars/infobar_tab_helper.h"
12 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 12 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
13 #include "chrome/browser/tab_contents/link_infobar_delegate.h" 13 #include "chrome/browser/tab_contents/link_infobar_delegate.h"
14 #import "chrome/browser/ui/cocoa/animatable_view.h" 14 #import "chrome/browser/ui/cocoa/animatable_view.h"
15 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 15 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
16 #include "chrome/browser/ui/cocoa/event_utils.h" 16 #include "chrome/browser/ui/cocoa/event_utils.h"
17 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" 17 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h"
18 #include "chrome/browser/ui/cocoa/infobars/infobar.h" 18 #include "chrome/browser/ui/cocoa/infobars/infobar.h"
19 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h" 19 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h"
20 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h" 20 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h"
21 #import "chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h" 21 #import "chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h"
22 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" 22 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
23 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 23 #include "chrome/browser/ui/tab_contents/tab_contents.h"
24 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" 24 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
25 #include "ui/gfx/image/image.h" 25 #include "ui/gfx/image/image.h"
26 #include "webkit/glue/window_open_disposition.h" 26 #include "webkit/glue/window_open_disposition.h"
27 27
28 namespace { 28 namespace {
29 // Durations set to match the default SlideAnimation duration. 29 // Durations set to match the default SlideAnimation duration.
30 const float kAnimateOpenDuration = 0.12; 30 const float kAnimateOpenDuration = 0.12;
31 const float kAnimateCloseDuration = 0.12; 31 const float kAnimateCloseDuration = 0.12;
32 } 32 }
33 33
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 LinkInfoBarController* controller = 457 LinkInfoBarController* controller =
458 [[LinkInfoBarController alloc] initWithDelegate:this owner:owner]; 458 [[LinkInfoBarController alloc] initWithDelegate:this owner:owner];
459 return new InfoBar(controller, this); 459 return new InfoBar(controller, this);
460 } 460 }
461 461
462 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(InfoBarTabHelper* owner) { 462 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar(InfoBarTabHelper* owner) {
463 ConfirmInfoBarController* controller = 463 ConfirmInfoBarController* controller =
464 [[ConfirmInfoBarController alloc] initWithDelegate:this owner:owner]; 464 [[ConfirmInfoBarController alloc] initWithDelegate:this owner:owner];
465 return new InfoBar(controller, this); 465 return new InfoBar(controller, this);
466 } 466 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698