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

Side by Side Diff: chrome/browser/ui/cocoa/sad_tab_controller.mm

Issue 6046009: Move base/mac_util.h to base/mac and use the base::mac namespace.... (Closed) Base URL: svn://chrome-svn/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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/browser/ui/cocoa/sad_tab_controller.h" 5 #include "chrome/browser/ui/cocoa/sad_tab_controller.h"
6 6
7 #include "base/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #import "chrome/browser/ui/cocoa/sad_tab_view.h" 8 #import "chrome/browser/ui/cocoa/sad_tab_view.h"
9 9
10 @implementation SadTabController 10 @implementation SadTabController
11 11
12 - (id)initWithTabContents:(TabContents*)someTabContents 12 - (id)initWithTabContents:(TabContents*)someTabContents
13 superview:(NSView*)superview { 13 superview:(NSView*)superview {
14 if ((self = [super initWithNibName:@"SadTab" 14 if ((self = [super initWithNibName:@"SadTab"
15 bundle:mac_util::MainAppBundle()])) { 15 bundle:base::mac::MainAppBundle()])) {
16 tabContents_ = someTabContents; 16 tabContents_ = someTabContents;
17 17
18 NSView* view = [self view]; 18 NSView* view = [self view];
19 [superview addSubview:view]; 19 [superview addSubview:view];
20 [view setFrame:[superview bounds]]; 20 [view setFrame:[superview bounds]];
21 } 21 }
22 22
23 return self; 23 return self;
24 } 24 }
25 25
(...skipping 13 matching lines...) Expand all
39 - (TabContents*)tabContents { 39 - (TabContents*)tabContents {
40 return tabContents_; 40 return tabContents_;
41 } 41 }
42 42
43 - (void)openLearnMoreAboutCrashLink:(id)sender { 43 - (void)openLearnMoreAboutCrashLink:(id)sender {
44 // Send the action up through the responder chain. 44 // Send the action up through the responder chain.
45 [NSApp sendAction:@selector(openLearnMoreAboutCrashLink:) to:nil from:self]; 45 [NSApp sendAction:@selector(openLearnMoreAboutCrashLink:) to:nil from:self];
46 } 46 }
47 47
48 @end 48 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/previewable_contents_controller.mm ('k') | chrome/browser/ui/cocoa/search_engine_dialog_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698