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/browser_dialogs.h" | 5 #include "chrome/browser/ui/browser_dialogs.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/favicon/favicon_tab_helper.h" | 11 #include "chrome/browser/favicon/favicon_tab_helper.h" |
12 #include "chrome/browser/ui/gtk/gtk_util.h" | 12 #include "chrome/browser/ui/gtk/gtk_util.h" |
13 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 13 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
14 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" | 14 #include "chrome/browser/ui/tab_contents/tab_contents_iterator.h" |
15 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 15 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
16 #include "chrome/common/logging_chrome.h" | 16 #include "chrome/common/logging_chrome.h" |
17 #include "content/public/browser/render_process_host.h" | 17 #include "content/public/browser/render_process_host.h" |
18 #include "content/public/browser/render_view_host.h" | 18 #include "content/public/browser/render_view_host.h" |
19 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
20 #include "content/public/common/result_codes.h" | 20 #include "content/public/common/result_codes.h" |
21 #include "grit/chromium_strings.h" | 21 #include "grit/chromium_strings.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "grit/theme_resources.h" | 23 #include "grit/theme_resources_standard.h" |
24 #include "third_party/skia/include/core/SkBitmap.h" | 24 #include "third_party/skia/include/core/SkBitmap.h" |
25 #include "ui/base/gtk/gtk_hig_constants.h" | 25 #include "ui/base/gtk/gtk_hig_constants.h" |
26 #include "ui/base/gtk/gtk_signal.h" | 26 #include "ui/base/gtk/gtk_signal.h" |
27 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
28 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
29 #include "ui/gfx/gtk_util.h" | 29 #include "ui/gfx/gtk_util.h" |
30 #include "ui/gfx/image/image.h" | 30 #include "ui/gfx/image/image.h" |
31 | 31 |
32 using content::WebContents; | 32 using content::WebContents; |
33 | 33 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 g_instance->ShowForWebContents(contents); | 261 g_instance->ShowForWebContents(contents); |
262 } | 262 } |
263 } | 263 } |
264 | 264 |
265 void HideHungRendererDialog(WebContents* contents) { | 265 void HideHungRendererDialog(WebContents* contents) { |
266 if (!logging::DialogsAreSuppressed() && g_instance) | 266 if (!logging::DialogsAreSuppressed() && g_instance) |
267 g_instance->EndForWebContents(contents); | 267 g_instance->EndForWebContents(contents); |
268 } | 268 } |
269 | 269 |
270 } // namespace browser | 270 } // namespace browser |
OLD | NEW |