| 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/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" | 10 #include "app/resource_bundle.h" |
| 11 #include "chrome/browser/google/google_util.h" | 11 #include "chrome/browser/google/google_util.h" |
| 12 #include "chrome/browser/gtk/gtk_chrome_link_button.h" | |
| 13 #include "chrome/browser/gtk/gtk_util.h" | |
| 14 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
| 13 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
| 14 #include "chrome/browser/ui/gtk/gtk_util.h" |
| 15 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| 16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
| 17 #include "grit/locale_settings.h" | 17 #include "grit/locale_settings.h" |
| 18 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources.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 |
| (...skipping 105 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 |