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

Side by Side Diff: ui/base/l10n/time_format.h

Issue 93863005: ui: Rename ui_export.h to ui_base_export.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UI_BASE_IMPLEMENTATION Created 6 years, 11 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
« no previous file with comments | « ui/base/l10n/l10n_util_win.h ('k') | ui/base/layout.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef UI_BASE_L10N_TIME_FORMAT_H_ 5 #ifndef UI_BASE_L10N_TIME_FORMAT_H_
6 #define UI_BASE_L10N_TIME_FORMAT_H_ 6 #define UI_BASE_L10N_TIME_FORMAT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_base_export.h"
11 11
12 namespace base { 12 namespace base {
13 class Time; 13 class Time;
14 class TimeDelta; 14 class TimeDelta;
15 } 15 }
16 16
17 namespace ui { 17 namespace ui {
18 18
19 // Methods to format time values as strings. 19 // Methods to format time values as strings.
20 class UI_EXPORT TimeFormat { 20 class UI_BASE_EXPORT TimeFormat {
21 public: 21 public:
22 // TimeElapsed, TimeRemaining and TimeRemainingShort functions: 22 // TimeElapsed, TimeRemaining and TimeRemainingShort functions:
23 // These functions return a localized string of approximate time duration. The 23 // These functions return a localized string of approximate time duration. The
24 // conditions are simpler than PastTime since these functions are used for 24 // conditions are simpler than PastTime since these functions are used for
25 // in-progress operations and users have different expectations of units. 25 // in-progress operations and users have different expectations of units.
26 26
27 // Returns times in elapsed-format: "3 mins ago", "2 days ago". 27 // Returns times in elapsed-format: "3 mins ago", "2 days ago".
28 static base::string16 TimeElapsed(const base::TimeDelta& delta); 28 static base::string16 TimeElapsed(const base::TimeDelta& delta);
29 29
30 // Returns times in remaining-format: "3 mins left", "2 days left". 30 // Returns times in remaining-format: "3 mins left", "2 days left".
(...skipping 27 matching lines...) Expand all
58 static base::string16 RelativeDate(const base::Time& time, 58 static base::string16 RelativeDate(const base::Time& time,
59 const base::Time* optional_midnight_today); 59 const base::Time* optional_midnight_today);
60 60
61 private: 61 private:
62 DISALLOW_IMPLICIT_CONSTRUCTORS(TimeFormat); 62 DISALLOW_IMPLICIT_CONSTRUCTORS(TimeFormat);
63 }; 63 };
64 64
65 } // namespace ui 65 } // namespace ui
66 66
67 #endif // UI_BASE_L10N_TIME_FORMAT_H_ 67 #endif // UI_BASE_L10N_TIME_FORMAT_H_
OLDNEW
« no previous file with comments | « ui/base/l10n/l10n_util_win.h ('k') | ui/base/layout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698