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

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

Issue 6377001: [Mac] Organize all infobar files into chrome/browser/ui/cocoa/infobars/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/infobar_delegate.h"
11 #import "chrome/browser/ui/cocoa/animatable_view.h" 11 #import "chrome/browser/ui/cocoa/animatable_view.h"
12 #include "chrome/browser/ui/cocoa/event_utils.h" 12 #include "chrome/browser/ui/cocoa/event_utils.h"
13 #include "chrome/browser/ui/cocoa/infobar.h" 13 #include "chrome/browser/ui/cocoa/infobars/infobar.h"
14 #import "chrome/browser/ui/cocoa/infobar_container_controller.h" 14 #import "chrome/browser/ui/cocoa/infobars/infobar_container_controller.h"
15 #import "chrome/browser/ui/cocoa/infobar_controller.h" 15 #import "chrome/browser/ui/cocoa/infobars/infobar_controller.h"
16 #include "skia/ext/skia_utils_mac.h" 16 #include "skia/ext/skia_utils_mac.h"
17 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" 17 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
18 #include "webkit/glue/window_open_disposition.h" 18 #include "webkit/glue/window_open_disposition.h"
19 19
20 namespace { 20 namespace {
21 // Durations set to match the default SlideAnimation duration. 21 // Durations set to match the default SlideAnimation duration.
22 const float kAnimateOpenDuration = 0.12; 22 const float kAnimateOpenDuration = 0.12;
23 const float kAnimateCloseDuration = 0.12; 23 const float kAnimateCloseDuration = 0.12;
24 } 24 }
25 25
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 LinkInfoBarController* controller = 528 LinkInfoBarController* controller =
529 [[LinkInfoBarController alloc] initWithDelegate:this]; 529 [[LinkInfoBarController alloc] initWithDelegate:this];
530 return new InfoBar(controller); 530 return new InfoBar(controller);
531 } 531 }
532 532
533 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar() { 533 InfoBar* ConfirmInfoBarDelegate::CreateInfoBar() {
534 ConfirmInfoBarController* controller = 534 ConfirmInfoBarController* controller =
535 [[ConfirmInfoBarController alloc] initWithDelegate:this]; 535 [[ConfirmInfoBarController alloc] initWithDelegate:this];
536 return new InfoBar(controller); 536 return new InfoBar(controller);
537 } 537 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_controller.h ('k') | chrome/browser/ui/cocoa/infobars/infobar_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698