| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #import "ios/chrome/browser/ui/sad_tab/sad_tab_view.h" | 5 #import "ios/chrome/browser/ui/sad_tab/sad_tab_view.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram_macros.h" | 7 #include "base/metrics/histogram_macros.h" |
| 8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
| 9 #include "components/grit/components_scaled_resources.h" | 9 #include "components/grit/components_scaled_resources.h" |
| 10 #include "components/strings/grit/components_strings.h" | 10 #include "components/strings/grit/components_strings.h" |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 break; | 235 break; |
| 236 case SadTabViewMode::FEEDBACK: { | 236 case SadTabViewMode::FEEDBACK: { |
| 237 NSString* feedbackIntroductionString = [NSString | 237 NSString* feedbackIntroductionString = [NSString |
| 238 stringWithFormat:@"%@\n\n", | 238 stringWithFormat:@"%@\n\n", |
| 239 l10n_util::GetNSString(IDS_SAD_TAB_RELOAD_TRY)]; | 239 l10n_util::GetNSString(IDS_SAD_TAB_RELOAD_TRY)]; |
| 240 NSMutableAttributedString* feedbackString = | 240 NSMutableAttributedString* feedbackString = |
| 241 [[NSMutableAttributedString alloc] | 241 [[NSMutableAttributedString alloc] |
| 242 initWithString:feedbackIntroductionString]; | 242 initWithString:feedbackIntroductionString]; |
| 243 NSAttributedString* bulletedListString = | 243 NSAttributedString* bulletedListString = |
| 244 [[self class] bulletedAttributedStringFromStrings:@[ | 244 [[self class] bulletedAttributedStringFromStrings:@[ |
| 245 l10n_util::GetNSString(IDS_SAD_TAB_RELOAD_CLOSE_NOTABS), | |
| 246 l10n_util::GetNSString(IDS_SAD_TAB_RELOAD_INCOGNITO), | 245 l10n_util::GetNSString(IDS_SAD_TAB_RELOAD_INCOGNITO), |
| 247 l10n_util::GetNSString(IDS_SAD_TAB_RELOAD_RESTART_BROWSER), | 246 l10n_util::GetNSString(IDS_SAD_TAB_RELOAD_RESTART_BROWSER), |
| 248 l10n_util::GetNSString(IDS_SAD_TAB_RELOAD_RESTART_DEVICE) | 247 l10n_util::GetNSString(IDS_SAD_TAB_RELOAD_RESTART_DEVICE) |
| 249 ]]; | 248 ]]; |
| 250 [feedbackString appendAttributedString:bulletedListString]; | 249 [feedbackString appendAttributedString:bulletedListString]; |
| 251 label = feedbackString; | 250 label = feedbackString; |
| 252 break; | 251 break; |
| 253 } | 252 } |
| 254 } | 253 } |
| 255 DCHECK(label); | 254 DCHECK(label); |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 break; | 572 break; |
| 574 } | 573 } |
| 575 }; | 574 }; |
| 576 } | 575 } |
| 577 | 576 |
| 578 + (UIColor*)sadTabBackgroundColor { | 577 + (UIColor*)sadTabBackgroundColor { |
| 579 return [UIColor colorWithWhite:kBackgroundColorBrightness alpha:1.0]; | 578 return [UIColor colorWithWhite:kBackgroundColorBrightness alpha:1.0]; |
| 580 } | 579 } |
| 581 | 580 |
| 582 @end | 581 @end |
| OLD | NEW |