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

Side by Side Diff: chrome/browser/printing/print_job.h

Issue 641923002: Change PDF scaling factor from double to float. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 6 years, 2 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 | « chrome/browser/printing/pdf_to_emf_converter.cc ('k') | chrome/browser/printing/print_job.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 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void ControlledWorkerShutdown(); 116 void ControlledWorkerShutdown();
117 117
118 // Called at shutdown when running a nested message loop. 118 // Called at shutdown when running a nested message loop.
119 void Quit(); 119 void Quit();
120 120
121 void HoldUntilStopIsCalled(); 121 void HoldUntilStopIsCalled();
122 122
123 #if defined(OS_WIN) 123 #if defined(OS_WIN)
124 void OnPdfToEmfStarted(int page_count); 124 void OnPdfToEmfStarted(int page_count);
125 void OnPdfToEmfPageConverted(int page_number, 125 void OnPdfToEmfPageConverted(int page_number,
126 double scale_factor, 126 float scale_factor,
127 scoped_ptr<MetafilePlayer> emf); 127 scoped_ptr<MetafilePlayer> emf);
128 #endif // OS_WIN 128 #endif // OS_WIN
129 129
130 content::NotificationRegistrar registrar_; 130 content::NotificationRegistrar registrar_;
131 131
132 // Source that generates the PrintedPage's (i.e. a WebContents). It will be 132 // Source that generates the PrintedPage's (i.e. a WebContents). It will be
133 // set back to NULL if the source is deleted before this object. 133 // set back to NULL if the source is deleted before this object.
134 PrintedPagesSource* source_; 134 PrintedPagesSource* source_;
135 135
136 // All the UI is done in a worker thread because many Win32 print functions 136 // All the UI is done in a worker thread because many Win32 print functions
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 scoped_refptr<PrintedDocument> document_; 217 scoped_refptr<PrintedDocument> document_;
218 scoped_refptr<PrintedPage> page_; 218 scoped_refptr<PrintedPage> page_;
219 const Type type_; 219 const Type type_;
220 220
221 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); 221 DISALLOW_COPY_AND_ASSIGN(JobEventDetails);
222 }; 222 };
223 223
224 } // namespace printing 224 } // namespace printing
225 225
226 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ 226 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/pdf_to_emf_converter.cc ('k') | chrome/browser/printing/print_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698