OLD | NEW |
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/gtk/sad_tab_gtk.h" | 5 #include "chrome/browser/ui/gtk/sad_tab_gtk.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 8 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
9 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
12 #include "grit/locale_settings.h" | 12 #include "grit/locale_settings.h" |
13 #include "grit/theme_resources.h" | 13 #include "grit/theme_resources.h" |
14 #include "grit/theme_resources_standard.h" | |
15 #include "ui/base/gtk/gtk_hig_constants.h" | 14 #include "ui/base/gtk/gtk_hig_constants.h" |
16 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.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 using content::OpenURLParams; | 19 using content::OpenURLParams; |
21 using content::WebContents; | 20 using content::WebContents; |
22 | 21 |
23 namespace { | 22 namespace { |
24 | 23 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 156 |
158 void SadTabGtk::OnLinkButtonClick(GtkWidget* sender) { | 157 void SadTabGtk::OnLinkButtonClick(GtkWidget* sender) { |
159 if (web_contents_) { | 158 if (web_contents_) { |
160 GURL help_url((kind_ == chrome::SAD_TAB_KIND_CRASHED) ? | 159 GURL help_url((kind_ == chrome::SAD_TAB_KIND_CRASHED) ? |
161 chrome::kCrashReasonURL : chrome::kKillReasonURL); | 160 chrome::kCrashReasonURL : chrome::kKillReasonURL); |
162 OpenURLParams params(help_url, content::Referrer(), CURRENT_TAB, | 161 OpenURLParams params(help_url, content::Referrer(), CURRENT_TAB, |
163 content::PAGE_TRANSITION_LINK, false); | 162 content::PAGE_TRANSITION_LINK, false); |
164 web_contents_->OpenURL(params); | 163 web_contents_->OpenURL(params); |
165 } | 164 } |
166 } | 165 } |
OLD | NEW |