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

Side by Side Diff: chrome/browser/ui/cocoa/tab_contents/sad_tab_view.mm

Issue 8477042: Move Sad Tab implementation out of the TabContentsViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes for jochen and jam Created 9 years, 1 month 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) 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_view.h" 5 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_view.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
9 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h" 9 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h"
10 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" 10 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 NSFont* font = [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]; 154 NSFont* font = [NSFont systemFontOfSize:[NSFont smallSystemFontSize]];
155 [help_.get() setMessageAndLink:helpMessage 155 [help_.get() setMessageAndLink:helpMessage
156 withLink:helpLink 156 withLink:helpLink
157 atOffset:linkOffset 157 atOffset:linkOffset
158 font:font 158 font:font
159 messageColor:[NSColor whiteColor] 159 messageColor:[NSColor whiteColor]
160 linkColor:[NSColor whiteColor]]; 160 linkColor:[NSColor whiteColor]];
161 } 161 }
162 162
163 // Called when someone clicks on the embedded link. 163 // Called when someone clicks on the embedded link.
164 - (BOOL) textView:(NSTextView*)textView 164 - (BOOL)textView:(NSTextView*)textView
165 clickedOnLink:(id)link 165 clickedOnLink:(id)link
166 atIndex:(NSUInteger)charIndex { 166 atIndex:(NSUInteger)charIndex {
167 if (controller_) 167 if (controller_)
168 [controller_ openLearnMoreAboutCrashLink:nil]; 168 [controller_ openLearnMoreAboutCrashLink:nil];
169 return YES; 169 return YES;
170 } 170 }
171 171
172 @end 172 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tab_contents/sad_tab_controller_unittest.mm ('k') | chrome/browser/ui/gtk/hung_renderer_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698