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

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

Issue 72503002: Remove some pass-thrus on RootWindow API in favor of exposing the RootWindowHost again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 #if defined(OS_WIN) 629 #if defined(OS_WIN)
630 gfx::NativeWindow window = 630 gfx::NativeWindow window =
631 #endif 631 #endif
632 chrome::ShowWebDialog(modal_parent, 632 chrome::ShowWebDialog(modal_parent,
633 Profile::FromBrowserContext(browser_context), 633 Profile::FromBrowserContext(browser_context),
634 dialog_delegate); 634 dialog_delegate);
635 #if defined(OS_WIN) 635 #if defined(OS_WIN)
636 if (window) { 636 if (window) {
637 HWND dialog_handle; 637 HWND dialog_handle;
638 #if defined(USE_AURA) 638 #if defined(USE_AURA)
639 dialog_handle = window->GetDispatcher()->GetAcceleratedWidget(); 639 dialog_handle = window->GetDispatcher()->host()->GetAcceleratedWidget();
640 #else 640 #else
641 dialog_handle = window; 641 dialog_handle = window;
642 #endif 642 #endif
643 if (::GetForegroundWindow() != dialog_handle) { 643 if (::GetForegroundWindow() != dialog_handle) {
644 ui::ForegroundHelper::SetForeground(dialog_handle); 644 ui::ForegroundHelper::SetForeground(dialog_handle);
645 } 645 }
646 } 646 }
647 #endif 647 #endif
648 } 648 }
649 649
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 print_job_title, 777 print_job_title,
778 print_job_print_ticket, 778 print_job_print_ticket,
779 file_type, 779 file_type,
780 delete_on_close); 780 delete_on_close);
781 return true; 781 return true;
782 } 782 }
783 } 783 }
784 return false; 784 return false;
785 } 785 }
786 786
787 } // end namespace 787 } // namespace print_dialog_cloud
OLDNEW
« no previous file with comments | « chrome/browser/first_run/try_chrome_dialog_view.cc ('k') | chrome/browser/renderer_host/pepper/pepper_flash_drm_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698