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

Unified Diff: printing/printing_context_win.cc

Issue 909183002: win/aura: Remove some more non-aura code for Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/browser/shell_web_contents_view_delegate_win.cc ('k') | ui/gfx/path_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_win.cc
diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc
index 678e7f2c6ff6fb6b5c608aff8fc0aa8a14b7b3f6..7822429baad0f29d8e53f128d7bab073c822bbd8 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -17,11 +17,8 @@
#include "printing/printing_utils.h"
#include "printing/units.h"
#include "skia/ext/platform_device.h"
-
-#if defined(USE_AURA)
#include "ui/aura/remote_window_tree_host_win.h"
#include "ui/aura/window.h"
-#endif
namespace printing {
@@ -362,14 +359,8 @@ PrintingContext::Result PrintingContextWin::InitializeSettings(
HWND PrintingContextWin::GetRootWindow(gfx::NativeView view) {
HWND window = NULL;
-#if defined(USE_AURA)
if (view)
window = view->GetHost()->GetAcceleratedWidget();
-#else
- if (view && IsWindow(view)) {
- window = GetAncestor(view, GA_ROOTOWNER);
- }
-#endif
if (!window) {
// TODO(maruel): crbug.com/1214347 Get the right browser window instead.
return GetDesktopWindow();
« no previous file with comments | « content/shell/browser/shell_web_contents_view_delegate_win.cc ('k') | ui/gfx/path_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698