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

Side by Side Diff: chrome/browser/printing/print_dialog_cloud.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/printing/print_dialog_cloud.h" 5 #include "chrome/browser/printing/print_dialog_cloud.h"
6 #include "chrome/browser/printing/print_dialog_cloud_internal.h" 6 #include "chrome/browser/printing/print_dialog_cloud_internal.h"
7 7
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 std::string(), 683 std::string(),
684 print_job_title, 684 print_job_title,
685 print_ticket, 685 print_ticket,
686 file_type, 686 file_type,
687 delete_on_close, 687 delete_on_close,
688 close_after_signin, 688 close_after_signin,
689 callback); 689 callback);
690 #if defined(OS_WIN) 690 #if defined(OS_WIN)
691 gfx::NativeWindow window = 691 gfx::NativeWindow window =
692 #endif 692 #endif
693 browser::ShowWebDialog(modal_parent, 693 chrome::ShowWebDialog(modal_parent,
694 Profile::FromBrowserContext(browser_context), 694 Profile::FromBrowserContext(browser_context),
695 dialog_delegate); 695 dialog_delegate);
696 #if defined(OS_WIN) 696 #if defined(OS_WIN)
697 if (!path_to_file.empty() && window) { 697 if (!path_to_file.empty() && window) {
698 HWND dialog_handle; 698 HWND dialog_handle;
699 #if defined(USE_AURA) 699 #if defined(USE_AURA)
700 dialog_handle = window->GetRootWindow()->GetAcceleratedWidget(); 700 dialog_handle = window->GetRootWindow()->GetAcceleratedWidget();
701 #else 701 #else
702 dialog_handle = window; 702 dialog_handle = window;
703 #endif 703 #endif
704 if (::GetForegroundWindow() != dialog_handle) { 704 if (::GetForegroundWindow() != dialog_handle) {
705 ui::ForegroundHelper::SetForeground(dialog_handle); 705 ui::ForegroundHelper::SetForeground(dialog_handle);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 print_job_print_ticket, 827 print_job_print_ticket,
828 file_type, 828 file_type,
829 delete_on_close); 829 delete_on_close);
830 return true; 830 return true;
831 } 831 }
832 } 832 }
833 return false; 833 return false;
834 } 834 }
835 835
836 } // end namespace 836 } // end namespace
OLDNEW
« no previous file with comments | « chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698