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

Side by Side Diff: chrome/renderer/mock_printer.cc

Issue 12896006: mac: Clean up a few more uses of USE_SKIA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac Created 7 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
« no previous file with comments | « no previous file | content/browser/gpu/gpu_internals_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/mock_printer.h" 5 #include "chrome/renderer/mock_printer.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/common/print_messages.h" 12 #include "chrome/common/print_messages.h"
13 #include "ipc/ipc_message_utils.h" 13 #include "ipc/ipc_message_utils.h"
14 #include "printing/metafile_impl.h" 14 #include "printing/metafile_impl.h"
15 #include "printing/units.h" 15 #include "printing/units.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 #if defined(OS_MACOSX)
19 #include "printing/pdf_metafile_cg_mac.h"
20 #endif
21
18 namespace { 22 namespace {
19 23
20 void UpdateMargins(int margins_type, int dpi, PrintMsg_Print_Params* params) { 24 void UpdateMargins(int margins_type, int dpi, PrintMsg_Print_Params* params) {
21 if (margins_type == printing::NO_MARGINS) { 25 if (margins_type == printing::NO_MARGINS) {
22 params->content_size.SetSize(static_cast<int>((8.5 * dpi)), 26 params->content_size.SetSize(static_cast<int>((8.5 * dpi)),
23 static_cast<int>((11.0 * dpi))); 27 static_cast<int>((11.0 * dpi)));
24 params->margin_left = 0; 28 params->margin_left = 0;
25 params->margin_top = 0; 29 params->margin_top = 0;
26 } else if (margins_type == printing::PRINTABLE_AREA_MARGINS) { 30 } else if (margins_type == printing::PRINTABLE_AREA_MARGINS) {
27 params->content_size.SetSize(static_cast<int>((8.0 * dpi)), 31 params->content_size.SetSize(static_cast<int>((8.0 * dpi)),
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 params->margin_top = margin_top_; 314 params->margin_top = margin_top_;
311 params->is_first_request = is_first_request_; 315 params->is_first_request = is_first_request_;
312 params->print_scaling_option = print_scaling_option_; 316 params->print_scaling_option = print_scaling_option_;
313 params->print_to_pdf = print_to_pdf_; 317 params->print_to_pdf = print_to_pdf_;
314 params->preview_request_id = preview_request_id_; 318 params->preview_request_id = preview_request_id_;
315 params->display_header_footer = display_header_footer_; 319 params->display_header_footer = display_header_footer_;
316 params->date = date_; 320 params->date = date_;
317 params->title = title_; 321 params->title = title_;
318 params->url = url_; 322 params->url = url_;
319 } 323 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698