OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/printed_document.h" | 5 #include "printing/printed_document.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 struct PrintDebugDumpPath { | 31 struct PrintDebugDumpPath { |
32 PrintDebugDumpPath() | 32 PrintDebugDumpPath() |
33 : enabled(false) { | 33 : enabled(false) { |
34 } | 34 } |
35 | 35 |
36 bool enabled; | 36 bool enabled; |
37 FilePath debug_dump_path; | 37 FilePath debug_dump_path; |
38 }; | 38 }; |
39 | 39 |
40 static base::LazyInstance<PrintDebugDumpPath> g_debug_dump_info = | 40 base::LazyInstance<PrintDebugDumpPath> g_debug_dump_info = |
41 LAZY_INSTANCE_INITIALIZER; | 41 LAZY_INSTANCE_INITIALIZER; |
42 | 42 |
43 } // namespace | 43 } // namespace |
44 | 44 |
45 namespace printing { | 45 namespace printing { |
46 | 46 |
47 PrintedDocument::PrintedDocument(const PrintSettings& settings, | 47 PrintedDocument::PrintedDocument(const PrintSettings& settings, |
48 PrintedPagesSource* source, | 48 PrintedPagesSource* source, |
49 int cookie) | 49 int cookie) |
50 : mutable_(source), | 50 : mutable_(source), |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 } | 225 } |
226 | 226 |
227 #if defined(OS_POSIX) && defined(USE_AURA) | 227 #if defined(OS_POSIX) && defined(USE_AURA) |
228 // This function is not used on aura linux/chromeos. | 228 // This function is not used on aura linux/chromeos. |
229 void PrintedDocument::RenderPrintedPage(const PrintedPage& page, | 229 void PrintedDocument::RenderPrintedPage(const PrintedPage& page, |
230 PrintingContext* context) const { | 230 PrintingContext* context) const { |
231 } | 231 } |
232 #endif | 232 #endif |
233 | 233 |
234 } // namespace printing | 234 } // namespace printing |
OLD | NEW |