OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/browser/printing/printed_document.h" | 5 #include "printing/printed_document.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "app/gfx/font.h" | 9 #include "app/gfx/font.h" |
10 #include "app/gfx/text_elider.h" | 10 #include "app/gfx/text_elider.h" |
11 #include "app/win_util.h" | 11 #include "app/win_util.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/singleton.h" | 14 #include "base/singleton.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/time.h" | 16 #include "base/time.h" |
17 #include "chrome/browser/printing/page_number.h" | 17 #include "printing/page_number.h" |
18 #include "chrome/browser/printing/page_overlays.h" | 18 #include "printing/page_overlays.h" |
19 #include "chrome/browser/printing/printed_pages_source.h" | 19 #include "printing/printed_pages_source.h" |
20 #include "chrome/browser/printing/printed_page.h" | 20 #include "printing/printed_page.h" |
21 #include "printing/units.h" | 21 #include "printing/units.h" |
22 #include "skia/ext/platform_device.h" | 22 #include "skia/ext/platform_device.h" |
23 | 23 |
24 using base::Time; | 24 using base::Time; |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 struct PrintDebugDumpPath { | 28 struct PrintDebugDumpPath { |
29 PrintDebugDumpPath() | 29 PrintDebugDumpPath() |
30 : enabled(false) { | 30 : enabled(false) { |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 date_ = win_util::FormatSystemDate(systemtime, std::wstring()); | 357 date_ = win_util::FormatSystemDate(systemtime, std::wstring()); |
358 time_ = win_util::FormatSystemTime(systemtime, std::wstring()); | 358 time_ = win_util::FormatSystemTime(systemtime, std::wstring()); |
359 #else | 359 #else |
360 Time now = Time::Now(); | 360 Time now = Time::Now(); |
361 date_ = TimeFormat::ShortDateNumeric(now); | 361 date_ = TimeFormat::ShortDateNumeric(now); |
362 time_ = TimeFormat::TimeOfDay(now); | 362 time_ = TimeFormat::TimeOfDay(now); |
363 #endif // WIN32 | 363 #endif // WIN32 |
364 } | 364 } |
365 | 365 |
366 } // namespace printing | 366 } // namespace printing |
OLD | NEW |