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

Side by Side Diff: components/printing/renderer/print_web_view_helper_mac.mm

Issue 811563008: Moving files from //chrome to //components/printing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds forgotten files Created 5 years, 11 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
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/renderer/printing/print_web_view_helper.h" 5 #include "components/printing/renderer/print_web_view_helper.h"
6 6
7 #import <AppKit/AppKit.h> 7 #import <AppKit/AppKit.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/mac/scoped_nsautorelease_pool.h" 10 #include "base/mac/scoped_nsautorelease_pool.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "chrome/common/print_messages.h" 12 #include "chrome/common/print_messages.h"
13 #include "printing/metafile_skia_wrapper.h" 13 #include "printing/metafile_skia_wrapper.h"
14 #include "printing/page_size_margins.h" 14 #include "printing/page_size_margins.h"
15 #include "skia/ext/platform_device.h" 15 #include "skia/ext/platform_device.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 #endif // defined(ENABLE_PRINT_PREVIEW) 136 #endif // defined(ENABLE_PRINT_PREVIEW)
137 RenderPageContent(frame, page_number, canvas_area, content_area, 137 RenderPageContent(frame, page_number, canvas_area, content_area,
138 scale_factor, static_cast<blink::WebCanvas*>(canvas)); 138 scale_factor, static_cast<blink::WebCanvas*>(canvas));
139 } 139 }
140 140
141 // Done printing. Close the device context to retrieve the compiled metafile. 141 // Done printing. Close the device context to retrieve the compiled metafile.
142 metafile->FinishPage(); 142 metafile->FinishPage();
143 } 143 }
144 144
145 } // namespace printing 145 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698