| 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> |
| 11 | 11 |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/i18n/file_util_icu.h" | 14 #include "base/i18n/file_util_icu.h" |
| 15 #include "base/i18n/time_formatting.h" | 15 #include "base/i18n/time_formatting.h" |
| 16 #include "base/lazy_instance.h" | 16 #include "base/lazy_instance.h" |
| 17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
| 18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 19 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "printing/page_number.h" | 21 #include "printing/page_number.h" |
| 22 #include "printing/printed_page.h" | 22 #include "printing/printed_page.h" |
| 23 #include "printing/printed_pages_source.h" | 23 #include "printing/printed_pages_source.h" |
| 24 #include "printing/units.h" | 24 #include "printing/units.h" |
| 25 #include "skia/ext/platform_device.h" | 25 #include "skia/ext/platform_device.h" |
| 26 #include "ui/base/text/text_elider.h" | |
| 27 #include "ui/gfx/font.h" | 26 #include "ui/gfx/font.h" |
| 27 #include "ui/gfx/text_elider.h" |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 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 base::FilePath debug_dump_path; | 37 base::FilePath debug_dump_path; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 } | 226 } |
| 227 | 227 |
| 228 #if (defined(OS_POSIX) && defined(USE_AURA)) || defined(OS_ANDROID) | 228 #if (defined(OS_POSIX) && defined(USE_AURA)) || defined(OS_ANDROID) |
| 229 // This function is not used on aura linux/chromeos or android. | 229 // This function is not used on aura linux/chromeos or android. |
| 230 void PrintedDocument::RenderPrintedPage(const PrintedPage& page, | 230 void PrintedDocument::RenderPrintedPage(const PrintedPage& page, |
| 231 PrintingContext* context) const { | 231 PrintingContext* context) const { |
| 232 } | 232 } |
| 233 #endif | 233 #endif |
| 234 | 234 |
| 235 } // namespace printing | 235 } // namespace printing |
| OLD | NEW |