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

Side by Side Diff: third_party/WebKit/Source/platform/DateComponents.h

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 int millisecond() const { return m_millisecond; } 74 int millisecond() const { return m_millisecond; }
75 int second() const { return m_second; } 75 int second() const { return m_second; }
76 int minute() const { return m_minute; } 76 int minute() const { return m_minute; }
77 int hour() const { return m_hour; } 77 int hour() const { return m_hour; }
78 int monthDay() const { return m_monthDay; } 78 int monthDay() const { return m_monthDay; }
79 int weekDay() const; 79 int weekDay() const;
80 int month() const { return m_month; } 80 int month() const { return m_month; }
81 int fullYear() const { return m_year; } 81 int fullYear() const { return m_year; }
82 int week() const { return m_week; } 82 int week() const { return m_week; }
83 Type type() const { return m_type; } 83 Type getType() const { return m_type; }
84 84
85 enum SecondFormat { 85 enum SecondFormat {
86 None, // Suppress the second part and the millisecond part if they are 0 . 86 None, // Suppress the second part and the millisecond part if they are 0 .
87 Second, // Always show the second part, and suppress the millisecond par t if it is 0. 87 Second, // Always show the second part, and suppress the millisecond par t if it is 0.
88 Millisecond // Always show the second part and the millisecond part. 88 Millisecond // Always show the second part and the millisecond part.
89 }; 89 };
90 90
91 // Returns an ISO 8601 representation for this instance. 91 // Returns an ISO 8601 representation for this instance.
92 // The format argument is valid for DateTime, DateTimeLocal, and Time types. 92 // The format argument is valid for DateTime, DateTimeLocal, and Time types.
93 String toString(SecondFormat format = None) const; 93 String toString(SecondFormat format = None) const;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 int m_year; // 1582 - 208 int m_year; // 1582 -
209 int m_week; // 1 - 53 209 int m_week; // 1 - 53
210 210
211 Type m_type; 211 Type m_type;
212 }; 212 };
213 213
214 214
215 } // namespace blink 215 } // namespace blink
216 216
217 #endif // DateComponents_h 217 #endif // DateComponents_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/CalculationValue.h ('k') | third_party/WebKit/Source/platform/Decimal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698