OLD | NEW |
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 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h" | 5 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h" |
6 | 6 |
7 #include "base/mac/bundle_locations.h" | 7 #include "base/mac/bundle_locations.h" |
8 #include "base/mac/mac_util.h" | |
9 #import "chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h" | 8 #import "chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h" |
10 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
11 | 10 |
12 namespace chrome { | 11 namespace chrome { |
13 | 12 |
14 SadTab* SadTab::Create(content::WebContents* web_contents, SadTabKind kind) { | 13 SadTab* SadTab::Create(content::WebContents* web_contents, SadTabKind kind) { |
15 return new SadTabCocoa(web_contents); | 14 return new SadTabCocoa(web_contents); |
16 } | 15 } |
17 | 16 |
18 SadTabCocoa::SadTabCocoa(content::WebContents* web_contents) | 17 SadTabCocoa::SadTabCocoa(content::WebContents* web_contents) |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 - (content::WebContents*)webContents { | 62 - (content::WebContents*)webContents { |
64 return webContents_; | 63 return webContents_; |
65 } | 64 } |
66 | 65 |
67 - (void)openLearnMoreAboutCrashLink:(id)sender { | 66 - (void)openLearnMoreAboutCrashLink:(id)sender { |
68 // Send the action up through the responder chain. | 67 // Send the action up through the responder chain. |
69 [NSApp sendAction:@selector(openLearnMoreAboutCrashLink:) to:nil from:self]; | 68 [NSApp sendAction:@selector(openLearnMoreAboutCrashLink:) to:nil from:self]; |
70 } | 69 } |
71 | 70 |
72 @end | 71 @end |
OLD | NEW |