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

Side by Side Diff: printing/image_mac.cc

Issue 1544623002: Switch to standard integer types in printing/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « printing/image.cc ('k') | printing/image_win.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 "printing/image.h" 5 #include "printing/image.h"
6 6
7 #include <ApplicationServices/ApplicationServices.h> 7 #include <ApplicationServices/ApplicationServices.h>
8 #include <stddef.h>
9 #include <stdint.h>
8 10
9 #include "base/mac/scoped_cftyperef.h" 11 #include "base/mac/scoped_cftyperef.h"
10 #include "printing/metafile.h" 12 #include "printing/metafile.h"
11 #include "ui/gfx/geometry/rect.h" 13 #include "ui/gfx/geometry/rect.h"
12 14
13 namespace printing { 15 namespace printing {
14 16
15 bool Image::LoadMetafile(const Metafile& metafile) { 17 bool Image::LoadMetafile(const Metafile& metafile) {
16 // The printing system uses single-page metafiles (page indexes are 1-based). 18 // The printing system uses single-page metafiles (page indexes are 1-based).
17 const unsigned int page_number = 1; 19 const unsigned int page_number = 1;
(...skipping 21 matching lines...) Expand all
39 41
40 struct Metafile::MacRenderPageParams params; 42 struct Metafile::MacRenderPageParams params;
41 params.shrink_to_fit = true; 43 params.shrink_to_fit = true;
42 metafile.RenderPage(page_number, bitmap_context, 44 metafile.RenderPage(page_number, bitmap_context,
43 CGRectMake(0, 0, size_.width(), size_.height()), params); 45 CGRectMake(0, 0, size_.width(), size_.height()), params);
44 46
45 return true; 47 return true;
46 } 48 }
47 49
48 } // namespace printing 50 } // namespace printing
OLDNEW
« no previous file with comments | « printing/image.cc ('k') | printing/image_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698