OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/hung_renderer_dialog.h" | 5 #include "chrome/browser/hung_renderer_dialog.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
| 9 #include "app/gfx/gtk_util.h" |
9 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
11 #include "base/gfx/gtk_util.h" | |
12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
13 #include "chrome/browser/browser_list.h" | 13 #include "chrome/browser/browser_list.h" |
14 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" |
15 #include "chrome/common/gtk_util.h" | 15 #include "chrome/common/gtk_util.h" |
16 #include "chrome/common/logging_chrome.h" | 16 #include "chrome/common/logging_chrome.h" |
17 #include "chrome/common/result_codes.h" | 17 #include "chrome/common/result_codes.h" |
18 #include "grit/chromium_strings.h" | 18 #include "grit/chromium_strings.h" |
19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
20 #include "grit/theme_resources.h" | 20 #include "grit/theme_resources.h" |
21 | 21 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 g_instance = new HungRendererDialogGtk(); | 211 g_instance = new HungRendererDialogGtk(); |
212 g_instance->ShowForTabContents(contents); | 212 g_instance->ShowForTabContents(contents); |
213 } | 213 } |
214 } | 214 } |
215 | 215 |
216 // static | 216 // static |
217 void HungRendererDialog::HideForTabContents(TabContents* contents) { | 217 void HungRendererDialog::HideForTabContents(TabContents* contents) { |
218 if (!logging::DialogsAreSuppressed() && g_instance) | 218 if (!logging::DialogsAreSuppressed() && g_instance) |
219 g_instance->EndForTabContents(contents); | 219 g_instance->EndForTabContents(contents); |
220 } | 220 } |
OLD | NEW |