OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | |
9 #include "base/i18n/rtl.h" | 8 #include "base/i18n/rtl.h" |
10 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/browser_list.h" | 10 #include "chrome/browser/browser_list.h" |
12 #include "chrome/browser/renderer_host/render_process_host.h" | 11 #include "chrome/browser/renderer_host/render_process_host.h" |
13 #include "chrome/browser/renderer_host/render_view_host.h" | 12 #include "chrome/browser/renderer_host/render_view_host.h" |
14 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
15 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
16 #include "chrome/common/logging_chrome.h" | 15 #include "chrome/common/logging_chrome.h" |
17 #include "chrome/common/result_codes.h" | 16 #include "chrome/common/result_codes.h" |
18 #include "gfx/canvas.h" | 17 #include "gfx/canvas.h" |
19 #include "grit/chromium_strings.h" | 18 #include "grit/chromium_strings.h" |
20 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
21 #include "grit/theme_resources.h" | 20 #include "grit/theme_resources.h" |
| 21 #include "ui/base/resource/resource_bundle.h" |
22 #include "views/grid_layout.h" | 22 #include "views/grid_layout.h" |
23 #include "views/controls/button/native_button.h" | 23 #include "views/controls/button/native_button.h" |
24 #include "views/controls/image_view.h" | 24 #include "views/controls/image_view.h" |
25 #include "views/controls/label.h" | 25 #include "views/controls/label.h" |
26 #include "views/controls/table/group_table_view.h" | 26 #include "views/controls/table/group_table_view.h" |
27 #include "views/standard_layout.h" | 27 #include "views/standard_layout.h" |
28 #include "views/window/client_view.h" | 28 #include "views/window/client_view.h" |
29 #include "views/window/dialog_delegate.h" | 29 #include "views/window/dialog_delegate.h" |
30 #include "views/window/window.h" | 30 #include "views/window/window.h" |
31 | 31 |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 } | 457 } |
458 | 458 |
459 // static | 459 // static |
460 void HideForTabContents(TabContents* contents) { | 460 void HideForTabContents(TabContents* contents) { |
461 if (!logging::DialogsAreSuppressed() && g_instance) | 461 if (!logging::DialogsAreSuppressed() && g_instance) |
462 g_instance->EndForTabContents(contents); | 462 g_instance->EndForTabContents(contents); |
463 } | 463 } |
464 | 464 |
465 } // namespace hung_renderer_dialog | 465 } // namespace hung_renderer_dialog |
466 | 466 |
OLD | NEW |