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

Side by Side Diff: components/sad_tab/cocoa/sad_tab_view.mm

Issue 543663002: Componentize sad_tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix url_constants.cc Created 6 years, 2 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
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 "components/sad_tab/cocoa/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 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h" 9 #include "components/sad_tab/cocoa/sad_tab_controller.h"
10 #include "chrome/common/url_constants.h" 10 #include "grit/components_scaled_resources.h"
11 #include "chrome/grit/generated_resources.h" 11 #include "grit/components_strings.h"
12 #include "grit/theme_resources.h"
13 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw eaker.h" 12 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw eaker.h"
14 #import "ui/base/cocoa/controls/hyperlink_text_view.h" 13 #import "ui/base/cocoa/controls/hyperlink_text_view.h"
15 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/base/l10n/l10n_util_mac.h" 15 #include "ui/base/l10n/l10n_util_mac.h"
17 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
18 #include "ui/gfx/image/image.h" 17 #include "ui/gfx/image/image.h"
19 18
20 // Offset above vertical middle of page where contents of page start. 19 // Offset above vertical middle of page where contents of page start.
21 static const CGFloat kSadTabOffset = -64; 20 static const CGFloat kSadTabOffset = -64;
22 // Padding between icon and title. 21 // Padding between icon and title.
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Called when someone clicks on the embedded link. 191 // Called when someone clicks on the embedded link.
193 - (BOOL)textView:(NSTextView*)textView 192 - (BOOL)textView:(NSTextView*)textView
194 clickedOnLink:(id)link 193 clickedOnLink:(id)link
195 atIndex:(NSUInteger)charIndex { 194 atIndex:(NSUInteger)charIndex {
196 if (controller_) 195 if (controller_)
197 [controller_ openLearnMoreAboutCrashLink:nil]; 196 [controller_ openLearnMoreAboutCrashLink:nil];
198 return YES; 197 return YES;
199 } 198 }
200 199
201 @end 200 @end
OLDNEW
« no previous file with comments | « components/sad_tab/cocoa/sad_tab_view.h ('k') | components/sad_tab/cocoa/sad_tab_view_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698