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 "chrome/browser/printing/printed_document.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "app/gfx/chrome_font.h" | 9 #include "app/gfx/chrome_font.h" |
10 #include "app/gfx/text_elider.h" | 10 #include "app/gfx/text_elider.h" |
| 11 #include "app/win_util.h" |
11 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
12 #include "base/time.h" | 13 #include "base/time.h" |
13 #include "chrome/browser/printing/page_number.h" | 14 #include "chrome/browser/printing/page_number.h" |
14 #include "chrome/browser/printing/page_overlays.h" | 15 #include "chrome/browser/printing/page_overlays.h" |
15 #include "chrome/browser/printing/printed_pages_source.h" | 16 #include "chrome/browser/printing/printed_pages_source.h" |
16 #include "chrome/browser/printing/printed_page.h" | 17 #include "chrome/browser/printing/printed_page.h" |
17 #include "chrome/common/gfx/emf.h" | 18 #include "chrome/common/gfx/emf.h" |
18 #include "chrome/common/time_format.h" | 19 #include "chrome/common/time_format.h" |
19 #include "chrome/common/notification_service.h" | 20 #include "chrome/common/notification_service.h" |
20 #include "chrome/common/win_util.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 printing { | 26 namespace printing { |
27 | 27 |
28 PrintedDocument::PrintedDocument(const PrintSettings& settings, | 28 PrintedDocument::PrintedDocument(const PrintSettings& settings, |
29 PrintedPagesSource* source, | 29 PrintedPagesSource* source, |
30 int cookie) | 30 int cookie) |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 date_ = win_util::FormatSystemDate(systemtime, std::wstring()); | 371 date_ = win_util::FormatSystemDate(systemtime, std::wstring()); |
372 time_ = win_util::FormatSystemTime(systemtime, std::wstring()); | 372 time_ = win_util::FormatSystemTime(systemtime, std::wstring()); |
373 #else | 373 #else |
374 Time now = Time::Now(); | 374 Time now = Time::Now(); |
375 date_ = TimeFormat::ShortDateNumeric(now); | 375 date_ = TimeFormat::ShortDateNumeric(now); |
376 time_ = TimeFormat::TimeOfDay(now); | 376 time_ = TimeFormat::TimeOfDay(now); |
377 #endif // WIN32 | 377 #endif // WIN32 |
378 } | 378 } |
379 | 379 |
380 } // namespace printing | 380 } // namespace printing |
OLD | NEW |