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