| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 242 | 242 | 
| 243   gtk_widget_destroy(GTK_WIDGET(dialog_)); | 243   gtk_widget_destroy(GTK_WIDGET(dialog_)); | 
| 244   delete g_instance; | 244   delete g_instance; | 
| 245   g_instance = NULL; | 245   g_instance = NULL; | 
| 246 } | 246 } | 
| 247 | 247 | 
| 248 }  // namespace | 248 }  // namespace | 
| 249 | 249 | 
| 250 namespace browser { | 250 namespace browser { | 
| 251 | 251 | 
| 252 void ShowHungRendererDialog(TabContents* contents) { | 252 void ShowNativeHungRendererDialog(TabContents* contents) { | 
| 253   if (!logging::DialogsAreSuppressed()) { | 253   if (!logging::DialogsAreSuppressed()) { | 
| 254     if (!g_instance) | 254     if (!g_instance) | 
| 255       g_instance = new HungRendererDialogGtk(); | 255       g_instance = new HungRendererDialogGtk(); | 
| 256     g_instance->ShowForTabContents(contents); | 256     g_instance->ShowForTabContents(contents); | 
| 257   } | 257   } | 
| 258 } | 258 } | 
| 259 | 259 | 
| 260 void HideHungRendererDialog(TabContents* contents) { | 260 void HideNativeHungRendererDialog(TabContents* contents) { | 
| 261   if (!logging::DialogsAreSuppressed() && g_instance) | 261   if (!logging::DialogsAreSuppressed() && g_instance) | 
| 262     g_instance->EndForTabContents(contents); | 262     g_instance->EndForTabContents(contents); | 
| 263 } | 263 } | 
| 264 | 264 | 
| 265 }  // namespace browser | 265 }  // namespace browser | 
| OLD | NEW | 
|---|