Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: chrome/browser/ui/views/hung_renderer_view.cc

Issue 10703061: chrome/browser/ui: Put browser_dialogs.h into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #if defined(OS_WIN) && !defined(USE_AURA) 7 #if defined(OS_WIN) && !defined(USE_AURA)
8 #include <windows.h> 8 #include <windows.h>
9 #endif 9 #endif
10 10
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 initialized = true; 573 initialized = true;
574 } 574 }
575 } 575 }
576 576
577 static HungRendererDialogView* CreateHungRendererDialogView() { 577 static HungRendererDialogView* CreateHungRendererDialogView() {
578 HungRendererDialogView* cv = new HungRendererDialogView; 578 HungRendererDialogView* cv = new HungRendererDialogView;
579 views::Widget::CreateWindow(cv); 579 views::Widget::CreateWindow(cv);
580 return cv; 580 return cv;
581 } 581 }
582 582
583 namespace browser { 583 namespace chrome {
584 584
585 void ShowHungRendererDialog(WebContents* contents) { 585 void ShowHungRendererDialog(WebContents* contents) {
586 if (!logging::DialogsAreSuppressed()) { 586 if (!logging::DialogsAreSuppressed()) {
587 if (!g_instance) 587 if (!g_instance)
588 g_instance = CreateHungRendererDialogView(); 588 g_instance = CreateHungRendererDialogView();
589 g_instance->ShowForWebContents(contents); 589 g_instance->ShowForWebContents(contents);
590 } 590 }
591 } 591 }
592 592
593 void HideHungRendererDialog(WebContents* contents) { 593 void HideHungRendererDialog(WebContents* contents) {
594 if (!logging::DialogsAreSuppressed() && g_instance) 594 if (!logging::DialogsAreSuppressed() && g_instance)
595 g_instance->EndForWebContents(contents); 595 g_instance->EndForWebContents(contents);
596 } 596 }
597 597
598 } // namespace browser 598 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/external_tab_container_win.cc ('k') | chrome/browser/ui/views/stubs_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698