OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 210 |
211 gtk_widget_destroy(GTK_WIDGET(dialog_)); | 211 gtk_widget_destroy(GTK_WIDGET(dialog_)); |
212 delete g_instance; | 212 delete g_instance; |
213 g_instance = NULL; | 213 g_instance = NULL; |
214 } | 214 } |
215 | 215 |
216 } // namespace | 216 } // namespace |
217 | 217 |
218 namespace browser { | 218 namespace browser { |
219 | 219 |
220 void ShowHungRendererDialog(TabContents* contents) { | 220 void ShowNativeHungRendererDialog(TabContents* contents) { |
221 if (!logging::DialogsAreSuppressed()) { | 221 if (!logging::DialogsAreSuppressed()) { |
222 if (!g_instance) | 222 if (!g_instance) |
223 g_instance = new HungRendererDialogGtk(); | 223 g_instance = new HungRendererDialogGtk(); |
224 g_instance->ShowForTabContents(contents); | 224 g_instance->ShowForTabContents(contents); |
225 } | 225 } |
226 } | 226 } |
227 | 227 |
228 void HideHungRendererDialog(TabContents* contents) { | 228 void HideNativeHungRendererDialog(TabContents* contents) { |
229 if (!logging::DialogsAreSuppressed() && g_instance) | 229 if (!logging::DialogsAreSuppressed() && g_instance) |
230 g_instance->EndForTabContents(contents); | 230 g_instance->EndForTabContents(contents); |
231 } | 231 } |
232 | 232 |
233 } // namespace browser | 233 } // namespace browser |
OLD | NEW |