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

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

Issue 18355002: Move HyperlinkButtonCell to /ui/base/cocoa/controls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: helpful comment Created 7 years, 5 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) 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.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 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h"
10 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h" 9 #import "chrome/browser/ui/cocoa/hyperlink_text_view.h"
11 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h" 10 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h"
12 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
13 #include "grit/generated_resources.h" 12 #include "grit/generated_resources.h"
14 #include "grit/theme_resources.h" 13 #include "grit/theme_resources.h"
15 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" 14 #import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
16 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
17 #include "ui/base/l10n/l10n_util_mac.h" 16 #include "ui/base/l10n/l10n_util_mac.h"
18 #include "ui/base/resource/resource_bundle.h" 17 #include "ui/base/resource/resource_bundle.h"
19 #include "ui/gfx/image/image.h" 18 #include "ui/gfx/image/image.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Called when someone clicks on the embedded link. 161 // Called when someone clicks on the embedded link.
163 - (BOOL)textView:(NSTextView*)textView 162 - (BOOL)textView:(NSTextView*)textView
164 clickedOnLink:(id)link 163 clickedOnLink:(id)link
165 atIndex:(NSUInteger)charIndex { 164 atIndex:(NSUInteger)charIndex {
166 if (controller_) 165 if (controller_)
167 [controller_ openLearnMoreAboutCrashLink:nil]; 166 [controller_ openLearnMoreAboutCrashLink:nil];
168 return YES; 167 return YES;
169 } 168 }
170 169
171 @end 170 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698