| 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 <utility> | 10 #include <utility> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "printing/printed_page.h" | 30 #include "printing/printed_page.h" |
| 31 #include "printing/printed_pages_source.h" | 31 #include "printing/printed_pages_source.h" |
| 32 #include "printing/units.h" | 32 #include "printing/units.h" |
| 33 #include "ui/gfx/font.h" | 33 #include "ui/gfx/font.h" |
| 34 #include "ui/gfx/text_elider.h" | 34 #include "ui/gfx/text_elider.h" |
| 35 | 35 |
| 36 namespace printing { | 36 namespace printing { |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| 39 | 39 |
| 40 base::LazyInstance<base::FilePath> g_debug_dump_info = | 40 base::LazyInstance<base::FilePath>::DestructorAtExit g_debug_dump_info = |
| 41 LAZY_INSTANCE_INITIALIZER; | 41 LAZY_INSTANCE_INITIALIZER; |
| 42 | 42 |
| 43 void DebugDumpPageTask(const base::string16& doc_name, | 43 void DebugDumpPageTask(const base::string16& doc_name, |
| 44 const PrintedPage* page) { | 44 const PrintedPage* page) { |
| 45 if (g_debug_dump_info.Get().empty()) | 45 if (g_debug_dump_info.Get().empty()) |
| 46 return; | 46 return; |
| 47 | 47 |
| 48 base::string16 filename = doc_name; | 48 base::string16 filename = doc_name; |
| 49 filename += | 49 filename += |
| 50 base::ASCIIToUTF16(base::StringPrintf("_%04d", page->page_number())); | 50 base::ASCIIToUTF16(base::StringPrintf("_%04d", page->page_number())); |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 265 |
| 266 #if defined(OS_ANDROID) | 266 #if defined(OS_ANDROID) |
| 267 // This function is not used on android. | 267 // This function is not used on android. |
| 268 void PrintedDocument::RenderPrintedPage(const PrintedPage& page, | 268 void PrintedDocument::RenderPrintedPage(const PrintedPage& page, |
| 269 PrintingContext* context) const { | 269 PrintingContext* context) const { |
| 270 NOTREACHED(); | 270 NOTREACHED(); |
| 271 } | 271 } |
| 272 #endif | 272 #endif |
| 273 | 273 |
| 274 } // namespace printing | 274 } // namespace printing |
| OLD | NEW |