OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <set> | 8 #include <set> |
| 9 #include <string> |
| 10 #include <vector> |
8 | 11 |
9 #include "app/gfx/font.h" | 12 #include "app/gfx/font.h" |
10 #include "app/gfx/text_elider.h" | 13 #include "app/gfx/text_elider.h" |
11 #include "base/file_util.h" | 14 #include "base/file_util.h" |
12 #include "base/i18n/file_util_icu.h" | 15 #include "base/i18n/file_util_icu.h" |
13 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
14 #include "base/singleton.h" | 17 #include "base/singleton.h" |
15 #include "base/string_util.h" | 18 #include "base/string_util.h" |
| 19 #include "base/utf_string_conversions.h" |
16 #include "base/time.h" | 20 #include "base/time.h" |
17 #include "base/i18n/time_formatting.h" | 21 #include "base/i18n/time_formatting.h" |
18 #include "printing/page_number.h" | 22 #include "printing/page_number.h" |
19 #include "printing/page_overlays.h" | 23 #include "printing/page_overlays.h" |
20 #include "printing/printed_pages_source.h" | 24 #include "printing/printed_pages_source.h" |
21 #include "printing/printed_page.h" | 25 #include "printing/printed_page.h" |
22 #include "printing/units.h" | 26 #include "printing/units.h" |
23 #include "skia/ext/platform_device.h" | 27 #include "skia/ext/platform_device.h" |
24 | 28 |
25 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 date_ = win_util::FormatSystemDate(systemtime, std::wstring()); | 315 date_ = win_util::FormatSystemDate(systemtime, std::wstring()); |
312 time_ = win_util::FormatSystemTime(systemtime, std::wstring()); | 316 time_ = win_util::FormatSystemTime(systemtime, std::wstring()); |
313 #else // OS_WIN | 317 #else // OS_WIN |
314 Time now = Time::Now(); | 318 Time now = Time::Now(); |
315 date_ = base::TimeFormatShortDateNumeric(now); | 319 date_ = base::TimeFormatShortDateNumeric(now); |
316 time_ = base::TimeFormatTimeOfDay(now); | 320 time_ = base::TimeFormatTimeOfDay(now); |
317 #endif // OS_WIN | 321 #endif // OS_WIN |
318 } | 322 } |
319 | 323 |
320 } // namespace printing | 324 } // namespace printing |
OLD | NEW |