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

Side by Side Diff: compat/non_win/timezoneapi.h

Issue 432843002: Add compat to Crashpad (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Comment on the UTF-16 byte ordering in MINIDUMP_STRING Created 6 years, 4 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
« no previous file with comments | « compat/non_win/minwinbase.h ('k') | compat/non_win/verrsrc.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 #ifndef CRASHPAD_COMPAT_NON_WIN_TIMEZONEAPI_H_
16 #define CRASHPAD_COMPAT_NON_WIN_TIMEZONEAPI_H_
17
18 #include <stdint.h>
19
20 #include "base/strings/string16.h"
21 #include "compat/non_win/minwinbase.h"
22
23 //! \brief Information about a time zone and its daylight saving rules.
24 struct TIME_ZONE_INFORMATION {
25 //! \brief The number of minutes west of UTC.
26 int32_t Bias;
27
28 //! \brief The UTF-16-encoded name of the time zone when observing standard
29 //! time.
30 char16 StandardName[32];
31
32 //! \brief The date and time to switch from daylight saving time to standard
33 //! time.
34 //!
35 //! This can be a specific time, or with SYSTEMTIME::wYear set to `0`, it can
36 //! reflect an annual recurring transition. In that case, SYSTEMTIME::wDay in
37 //! the range `1` to `5` is interpreted as the given occurrence of
38 //! SYSTEMTIME::wDayOfWeek within the month, `1` being the first occurrence
39 //! and `5` being the last (even if there are fewer than 5).
40 SYSTEMTIME StandardDate;
41
42 //! \brief The bias relative to #Bias to be applied when observing standard
43 //! time.
44 int32_t StandardBias;
45
46 //! \brief The UTF-16-encoded name of the time zone when observing daylight
47 //! saving time.
48 char16 DaylightName[32];
49
50 //! \brief The date and time to switch from standard time to daylight saving
51 //! time.
52 //!
53 //! This field is specified in the same manner as #StandardDate.
54 SYSTEMTIME DaylightDate;
55
56 //! \brief The bias relative to #Bias to be applied when observing daylight
57 //! saving time.
58 int32_t DaylightBias;
59 };
60
61 #endif // CRASHPAD_COMPAT_NON_WIN_TIMEZONEAPI_H_
OLDNEW
« no previous file with comments | « compat/non_win/minwinbase.h ('k') | compat/non_win/verrsrc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698