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/views/hung_renderer_view.h" | 5 #include "chrome/browser/ui/views/hung_renderer_view.h" |
6 | 6 |
7 #if defined(OS_WIN) && !defined(USE_AURA) | |
8 #include <windows.h> | |
9 #endif | |
10 | |
11 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
12 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
13 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/favicon/favicon_tab_helper.h" | 10 #include "chrome/browser/favicon/favicon_tab_helper.h" |
15 #include "chrome/browser/platform_util.h" | 11 #include "chrome/browser/platform_util.h" |
16 #include "chrome/browser/ui/browser_dialogs.h" | 12 #include "chrome/browser/ui/browser_dialogs.h" |
17 #include "chrome/browser/ui/browser_finder.h" | 13 #include "chrome/browser/ui/browser_finder.h" |
18 #include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h" | 14 #include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h" |
19 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 15 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
20 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" | 16 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 } | 468 } |
473 | 469 |
474 void HideHungRendererDialog(WebContents* contents) { | 470 void HideHungRendererDialog(WebContents* contents) { |
475 if (!logging::DialogsAreSuppressed() && | 471 if (!logging::DialogsAreSuppressed() && |
476 !PlatformHideCustomHungRendererDialog(contents) && | 472 !PlatformHideCustomHungRendererDialog(contents) && |
477 HungRendererDialogView::GetInstance()) | 473 HungRendererDialogView::GetInstance()) |
478 HungRendererDialogView::GetInstance()->EndForWebContents(contents); | 474 HungRendererDialogView::GetInstance()->EndForWebContents(contents); |
479 } | 475 } |
480 | 476 |
481 } // namespace chrome | 477 } // namespace chrome |
OLD | NEW |