| OLD | NEW |
| 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 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h" | 5 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
| 9 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h" | 9 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h" |
| 10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
| 11 #include "chrome/grit/generated_resources.h" | 11 #include "chrome/grit/generated_resources.h" |
| 12 #include "grit/theme_resources.h" | 12 #include "grit/theme_resources.h" |
| 13 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" | 13 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
| 14 #import "ui/base/cocoa/controls/hyperlink_text_view.h" | 14 #import "ui/base/cocoa/controls/hyperlink_text_view.h" |
| 15 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // Called when someone clicks on the embedded link. | 192 // Called when someone clicks on the embedded link. |
| 193 - (BOOL)textView:(NSTextView*)textView | 193 - (BOOL)textView:(NSTextView*)textView |
| 194 clickedOnLink:(id)link | 194 clickedOnLink:(id)link |
| 195 atIndex:(NSUInteger)charIndex { | 195 atIndex:(NSUInteger)charIndex { |
| 196 if (controller_) | 196 if (controller_) |
| 197 [controller_ openLearnMoreAboutCrashLink:nil]; | 197 [controller_ openLearnMoreAboutCrashLink:nil]; |
| 198 return YES; | 198 return YES; |
| 199 } | 199 } |
| 200 | 200 |
| 201 @end | 201 @end |
| OLD | NEW |