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

Side by Side Diff: fpdfsdk/include/fx_systemhandler.h

Issue 1821043003: Remove FX_WORD in favor of uint16_t. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use stdint.h directly, bitfield minefield. 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
« no previous file with comments | « fpdfsdk/include/fsdk_mgr.h ('k') | fpdfsdk/include/fxedit/fx_edit.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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ 7 #ifndef FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_
8 #define FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ 8 #define FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_
9 9
10 #include "core/include/fxcrt/fx_coordinates.h" 10 #include "core/include/fxcrt/fx_coordinates.h"
11 #include "core/include/fxcrt/fx_system.h" 11 #include "core/include/fxcrt/fx_system.h"
12 12
13 class CPDF_Document; 13 class CPDF_Document;
14 class CPDF_Font; 14 class CPDF_Font;
15 15
16 typedef void* FX_HWND; 16 typedef void* FX_HWND;
17 typedef void* FX_HMENU; 17 typedef void* FX_HMENU;
18 typedef void (*TimerCallback)(int32_t idEvent); 18 typedef void (*TimerCallback)(int32_t idEvent);
19 19
20 struct FX_SYSTEMTIME { 20 struct FX_SYSTEMTIME {
21 FX_SYSTEMTIME() 21 FX_SYSTEMTIME()
22 : wYear(0), 22 : wYear(0),
23 wMonth(0), 23 wMonth(0),
24 wDayOfWeek(0), 24 wDayOfWeek(0),
25 wDay(0), 25 wDay(0),
26 wHour(0), 26 wHour(0),
27 wMinute(0), 27 wMinute(0),
28 wSecond(0), 28 wSecond(0),
29 wMilliseconds(0) {} 29 wMilliseconds(0) {}
30 FX_WORD wYear; 30 uint16_t wYear;
31 FX_WORD wMonth; 31 uint16_t wMonth;
32 FX_WORD wDayOfWeek; 32 uint16_t wDayOfWeek;
33 FX_WORD wDay; 33 uint16_t wDay;
34 FX_WORD wHour; 34 uint16_t wHour;
35 FX_WORD wMinute; 35 uint16_t wMinute;
36 FX_WORD wSecond; 36 uint16_t wSecond;
37 FX_WORD wMilliseconds; 37 uint16_t wMilliseconds;
38 }; 38 };
39 39
40 // cursor style 40 // cursor style
41 #define FXCT_ARROW 0 41 #define FXCT_ARROW 0
42 #define FXCT_NESW 1 42 #define FXCT_NESW 1
43 #define FXCT_NWSE 2 43 #define FXCT_NWSE 2
44 #define FXCT_VBEAM 3 44 #define FXCT_VBEAM 3
45 #define FXCT_HBEAM 4 45 #define FXCT_HBEAM 4
46 #define FXCT_HAND 5 46 #define FXCT_HAND 5
47 47
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual FX_BOOL IsALTKeyDown(FX_DWORD nFlag) = 0; 97 virtual FX_BOOL IsALTKeyDown(FX_DWORD nFlag) = 0;
98 virtual FX_BOOL IsINSERTKeyDown(FX_DWORD nFlag) = 0; 98 virtual FX_BOOL IsINSERTKeyDown(FX_DWORD nFlag) = 0;
99 99
100 virtual FX_SYSTEMTIME GetLocalTime() = 0; 100 virtual FX_SYSTEMTIME GetLocalTime() = 0;
101 101
102 virtual int32_t GetCharSet() = 0; 102 virtual int32_t GetCharSet() = 0;
103 virtual void SetCharSet(int32_t nCharSet) = 0; 103 virtual void SetCharSet(int32_t nCharSet) = 0;
104 }; 104 };
105 105
106 #endif // FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ 106 #endif // FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_mgr.h ('k') | fpdfsdk/include/fxedit/fx_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698