Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Side by Side Diff: chrome/browser/printing/printed_document.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/gfx/platform_device_win.h" 9 #include "base/gfx/platform_device_win.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "chrome/browser/printing/page_number.h" 12 #include "chrome/browser/printing/page_number.h"
13 #include "chrome/browser/printing/page_overlays.h" 13 #include "chrome/browser/printing/page_overlays.h"
14 #include "chrome/browser/printing/printed_pages_source.h" 14 #include "chrome/browser/printing/printed_pages_source.h"
15 #include "chrome/browser/printing/printed_page.h" 15 #include "chrome/browser/printing/printed_page.h"
16 #include "chrome/browser/printing/units.h" 16 #include "chrome/browser/printing/units.h"
17 #include "chrome/common/gfx/chrome_font.h" 17 #include "chrome/common/gfx/chrome_font.h"
18 #include "chrome/common/gfx/emf.h" 18 #include "chrome/common/gfx/emf.h"
19 #include "chrome/common/gfx/url_elider.h" 19 #include "chrome/common/gfx/url_elider.h"
20 #include "chrome/common/time_format.h" 20 #include "chrome/common/time_format.h"
21 #include "chrome/common/notification_service.h" 21 #include "chrome/common/notification_service.h"
22 #include "chrome/common/win_util.h" 22 #include "chrome/common/win_util.h"
23 23
24 using base::Time;
25
24 namespace printing { 26 namespace printing {
25 27
26 PrintedDocument::PrintedDocument(const PrintSettings& settings, 28 PrintedDocument::PrintedDocument(const PrintSettings& settings,
27 PrintedPagesSource* source, 29 PrintedPagesSource* source,
28 int cookie) 30 int cookie)
29 : mutable_(source), 31 : mutable_(source),
30 immutable_(settings, source, cookie) { 32 immutable_(settings, source, cookie) {
31 33
32 // Records the expected page count if a range is setup. 34 // Records the expected page count if a range is setup.
33 if (!settings.ranges.empty()) { 35 if (!settings.ranges.empty()) {
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 time_ = win_util::FormatSystemTime(systemtime, std::wstring()); 372 time_ = win_util::FormatSystemTime(systemtime, std::wstring());
371 #else 373 #else
372 Time now = Time::Now(); 374 Time now = Time::Now();
373 date_ = TimeFormat::ShortDateNumeric(now); 375 date_ = TimeFormat::ShortDateNumeric(now);
374 time_ = TimeFormat::TimeOfDay(now); 376 time_ = TimeFormat::TimeOfDay(now);
375 #endif // WIN32 377 #endif // WIN32
376 } 378 }
377 379
378 } // namespace printing 380 } // namespace printing
379 381
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698