OLD | NEW |
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/gtk/sad_tab_gtk.h" | 5 #include "chrome/browser/ui/gtk/sad_tab_gtk.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | |
11 #include "chrome/browser/google/google_util.h" | 10 #include "chrome/browser/google/google_util.h" |
12 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
13 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 12 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
14 #include "chrome/browser/ui/gtk/gtk_util.h" | 13 #include "chrome/browser/ui/gtk/gtk_util.h" |
15 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
16 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
17 #include "grit/locale_settings.h" | 16 #include "grit/locale_settings.h" |
18 #include "grit/theme_resources.h" | 17 #include "grit/theme_resources.h" |
| 18 #include "ui/base/resource/resource_bundle.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // Background color of the content (a grayish blue) for a crashed tab. | 22 // Background color of the content (a grayish blue) for a crashed tab. |
23 const GdkColor kCrashedBackgroundColor = GDK_COLOR_RGB(35, 48, 64); | 23 const GdkColor kCrashedBackgroundColor = GDK_COLOR_RGB(35, 48, 64); |
24 | 24 |
25 // Background color of the content (a grayish purple) for a killed | 25 // Background color of the content (a grayish purple) for a killed |
26 // tab. TODO(gspencer): update this for the "real" color when the UI | 26 // tab. TODO(gspencer): update this for the "real" color when the UI |
27 // team provides one. See http://crosbug.com/10711 | 27 // team provides one. See http://crosbug.com/10711 |
28 const GdkColor kKilledBackgroundColor = GDK_COLOR_RGB(57, 48, 88); | 28 const GdkColor kKilledBackgroundColor = GDK_COLOR_RGB(57, 48, 88); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 void SadTabGtk::OnLinkButtonClick(GtkWidget* sender) { | 130 void SadTabGtk::OnLinkButtonClick(GtkWidget* sender) { |
131 if (tab_contents_ != NULL) { | 131 if (tab_contents_ != NULL) { |
132 GURL help_url = | 132 GURL help_url = |
133 google_util::AppendGoogleLocaleParam(GURL( | 133 google_util::AppendGoogleLocaleParam(GURL( |
134 kind_ == CRASHED ? | 134 kind_ == CRASHED ? |
135 chrome::kCrashReasonURL : | 135 chrome::kCrashReasonURL : |
136 chrome::kKillReasonURL)); | 136 chrome::kKillReasonURL)); |
137 tab_contents_->OpenURL(help_url, GURL(), CURRENT_TAB, PageTransition::LINK); | 137 tab_contents_->OpenURL(help_url, GURL(), CURRENT_TAB, PageTransition::LINK); |
138 } | 138 } |
139 } | 139 } |
OLD | NEW |