OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |