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: compat/non_win/timezoneapi.h

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

Powered by Google App Engine
This is Rietveld 408576698