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

Side by Side Diff: chrome/browser/printing/print_dialog_cloud.cc

Issue 184903003: Window ownership -> WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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 6
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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 #if defined(OS_WIN) 628 #if defined(OS_WIN)
629 gfx::NativeWindow window = 629 gfx::NativeWindow window =
630 #endif 630 #endif
631 chrome::ShowWebDialog(modal_parent, 631 chrome::ShowWebDialog(modal_parent,
632 Profile::FromBrowserContext(browser_context), 632 Profile::FromBrowserContext(browser_context),
633 dialog_delegate); 633 dialog_delegate);
634 #if defined(OS_WIN) 634 #if defined(OS_WIN)
635 if (window) { 635 if (window) {
636 HWND dialog_handle; 636 HWND dialog_handle;
637 #if defined(USE_AURA) 637 #if defined(USE_AURA)
638 dialog_handle = window->GetDispatcher()->host()->GetAcceleratedWidget(); 638 dialog_handle = window->GetHost()->GetAcceleratedWidget();
639 #else 639 #else
640 dialog_handle = window; 640 dialog_handle = window;
641 #endif 641 #endif
642 if (::GetForegroundWindow() != dialog_handle) { 642 if (::GetForegroundWindow() != dialog_handle) {
643 ui::ForegroundHelper::SetForeground(dialog_handle); 643 ui::ForegroundHelper::SetForeground(dialog_handle);
644 } 644 }
645 } 645 }
646 #endif 646 #endif
647 } 647 }
648 648
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 print_job_print_ticket, 772 print_job_print_ticket,
773 file_type, 773 file_type,
774 delete_on_close); 774 delete_on_close);
775 return true; 775 return true;
776 } 776 }
777 } 777 }
778 return false; 778 return false;
779 } 779 }
780 780
781 } // namespace print_dialog_cloud 781 } // namespace print_dialog_cloud
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698