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" |
14 #include "ui/base/gtk/gtk_hig_constants.h" | 15 #include "ui/base/gtk/gtk_hig_constants.h" |
15 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
16 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
17 #include "ui/gfx/image/image.h" | 18 #include "ui/gfx/image/image.h" |
18 | 19 |
19 using content::OpenURLParams; | 20 using content::OpenURLParams; |
20 using content::WebContents; | 21 using content::WebContents; |
21 | 22 |
22 namespace { | 23 namespace { |
23 | 24 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void SadTabGtk::OnLinkButtonClick(GtkWidget* sender) { | 159 void SadTabGtk::OnLinkButtonClick(GtkWidget* sender) { |
159 if (web_contents_ != NULL) { | 160 if (web_contents_ != NULL) { |
160 GURL help_url( | 161 GURL help_url( |
161 kind_ == CRASHED ? chrome::kCrashReasonURL : chrome::kKillReasonURL); | 162 kind_ == CRASHED ? chrome::kCrashReasonURL : chrome::kKillReasonURL); |
162 OpenURLParams params( | 163 OpenURLParams params( |
163 help_url, content::Referrer(), CURRENT_TAB, | 164 help_url, content::Referrer(), CURRENT_TAB, |
164 content::PAGE_TRANSITION_LINK, false); | 165 content::PAGE_TRANSITION_LINK, false); |
165 web_contents_->OpenURL(params); | 166 web_contents_->OpenURL(params); |
166 } | 167 } |
167 } | 168 } |
OLD | NEW |