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 "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/favicon/favicon_tab_helper.h" | 9 #include "chrome/browser/favicon/favicon_tab_helper.h" |
10 #include "chrome/browser/ui/browser_list.h" | 10 #include "chrome/browser/ui/browser_list.h" |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 } | 466 } |
467 | 467 |
468 static HungRendererDialogView* CreateHungRendererDialogView() { | 468 static HungRendererDialogView* CreateHungRendererDialogView() { |
469 HungRendererDialogView* cv = new HungRendererDialogView; | 469 HungRendererDialogView* cv = new HungRendererDialogView; |
470 views::Widget::CreateWindow(cv); | 470 views::Widget::CreateWindow(cv); |
471 return cv; | 471 return cv; |
472 } | 472 } |
473 | 473 |
474 namespace browser { | 474 namespace browser { |
475 | 475 |
476 void ShowHungRendererDialog(TabContents* contents) { | 476 void ShowNativeHungRendererDialog(TabContents* contents) { |
477 if (!logging::DialogsAreSuppressed()) { | 477 if (!logging::DialogsAreSuppressed()) { |
478 if (!g_instance) | 478 if (!g_instance) |
479 g_instance = CreateHungRendererDialogView(); | 479 g_instance = CreateHungRendererDialogView(); |
480 g_instance->ShowForTabContents(contents); | 480 g_instance->ShowForTabContents(contents); |
481 } | 481 } |
482 } | 482 } |
483 | 483 |
484 void HideHungRendererDialog(TabContents* contents) { | 484 void HideNativeHungRendererDialog(TabContents* contents) { |
485 if (!logging::DialogsAreSuppressed() && g_instance) | 485 if (!logging::DialogsAreSuppressed() && g_instance) |
486 g_instance->EndForTabContents(contents); | 486 g_instance->EndForTabContents(contents); |
487 } | 487 } |
488 | 488 |
489 } // namespace browser | 489 } // namespace browser |
OLD | NEW |