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

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

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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_define.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 typedef FX_LPVOID FX_HWND; 10 typedef FX_LPVOID FX_HWND;
11 typedef FX_LPVOID FX_HMENU; 11 typedef FX_LPVOID FX_HMENU;
12 typedef void» » » » » (*TimerCallback)(FX_INT32 idEven t); 12 typedef void» » » » » (*TimerCallback)(int32_t idEvent );
13 13
14 typedef struct _FX_SYSTEMTIME 14 typedef struct _FX_SYSTEMTIME
15 { 15 {
16 _FX_SYSTEMTIME() 16 _FX_SYSTEMTIME()
17 : wYear(0), 17 : wYear(0),
18 wMonth(0), 18 wMonth(0),
19 wDayOfWeek(0), 19 wDayOfWeek(0),
20 wDay(0), 20 wDay(0),
21 wHour(0), 21 wHour(0),
22 wMinute(0), 22 wMinute(0),
(...skipping 22 matching lines...) Expand all
45 public: 45 public:
46 virtual ~IFX_SystemHandler() {} 46 virtual ~IFX_SystemHandler() {}
47 virtual void InvalidateRect(FX_HWND hWnd, FX_ RECT rect) = 0; 47 virtual void InvalidateRect(FX_HWND hWnd, FX_ RECT rect) = 0;
48 virtual void OutputSelectedRect(void* pFormFi ller, CPDF_Rect&rect) = 0; 48 virtual void OutputSelectedRect(void* pFormFi ller, CPDF_Rect&rect) = 0;
49 49
50 virtual FX_BOOL IsSelectionImplemented() = 0; 50 virtual FX_BOOL IsSelectionImplemented() = 0;
51 51
52 virtual CFX_WideString GetClipboardText(FX_HWND hWnd) = 0; 52 virtual CFX_WideString GetClipboardText(FX_HWND hWnd) = 0;
53 virtual FX_BOOL SetClipboardText(FX_HWND hWnd, C FX_WideString string) = 0; 53 virtual FX_BOOL SetClipboardText(FX_HWND hWnd, C FX_WideString string) = 0;
54 54
55 » virtual void» » » » ClientToScreen(FX_HWND hWnd, FX_ INT32& x, FX_INT32& y) = 0; 55 » virtual void» » » » ClientToScreen(FX_HWND hWnd, int 32_t& x, int32_t& y) = 0;
56 » virtual void» » » » ScreenToClient(FX_HWND hWnd, FX_ INT32& x, FX_INT32& y) = 0; 56 » virtual void» » » » ScreenToClient(FX_HWND hWnd, int 32_t& x, int32_t& y) = 0;
57 57
58 /*cursor style 58 /*cursor style
59 FXCT_ARROW 59 FXCT_ARROW
60 FXCT_NESW 60 FXCT_NESW
61 FXCT_NWSE 61 FXCT_NWSE
62 FXCT_VBEAM 62 FXCT_VBEAM
63 FXCT_HBEAM 63 FXCT_HBEAM
64 FXCT_HAND 64 FXCT_HAND
65 */ 65 */
66 » virtual void» » » » SetCursor(FX_INT32 nCursorType) = 0; 66 » virtual void» » » » SetCursor(int32_t nCursorType) = 0;
67 67
68 virtual FX_HMENU CreatePopupMenu() = 0; 68 virtual FX_HMENU CreatePopupMenu() = 0;
69 » virtual FX_BOOL»» » » AppendMenuItem(FX_HMENU hMenu, F X_INT32 nIDNewItem, CFX_WideString string) = 0; 69 » virtual FX_BOOL»» » » AppendMenuItem(FX_HMENU hMenu, i nt32_t nIDNewItem, CFX_WideString string) = 0;
70 » virtual FX_BOOL»» » » EnableMenuItem(FX_HMENU hMenu, F X_INT32 nIDItem, FX_BOOL bEnabled) = 0; 70 » virtual FX_BOOL»» » » EnableMenuItem(FX_HMENU hMenu, i nt32_t nIDItem, FX_BOOL bEnabled) = 0;
71 » virtual FX_INT32» » » TrackPopupMenu(FX_HMENU hMenu, F X_INT32 x, FX_INT32 y, FX_HWND hParent) = 0; 71 » virtual int32_t»» » TrackPopupMenu(FX_HMENU hMenu, int32_t x , int32_t y, FX_HWND hParent) = 0;
72 virtual void DestroyMenu(FX_HMENU hMenu) = 0; 72 virtual void DestroyMenu(FX_HMENU hMenu) = 0;
73 73
74 » virtual CFX_ByteString» » GetNativeTrueTypeFont(FX_INT32 nCharset) = 0; 74 » virtual CFX_ByteString» » GetNativeTrueTypeFont(int32_t nCharset) = 0;
75 » virtual FX_BOOL»» » » FindNativeTrueTypeFont(FX_INT32 nCharset, CFX_ByteString sFontFaceName) = 0; 75 » virtual FX_BOOL»» » » FindNativeTrueTypeFont(int32_t n Charset, CFX_ByteString sFontFaceName) = 0;
76 » virtual CPDF_Font*» » » AddNativeTrueTypeFontToPDF(CPDF_ Document* pDoc, CFX_ByteString sFontFaceName, FX_BYTE nCharset) = 0; 76 » virtual CPDF_Font*» » » AddNativeTrueTypeFontToPDF(CPDF_ Document* pDoc, CFX_ByteString sFontFaceName, uint8_t nCharset) = 0;
77 77
78 » virtual FX_INT32» » » SetTimer(FX_INT32 uElapse, Timer Callback lpTimerFunc) = 0; 78 » virtual int32_t»» » SetTimer(int32_t uElapse, TimerCallback lpTimerFunc) = 0;
79 » virtual void» » » » KillTimer(FX_INT32 nID) = 0; 79 » virtual void» » » » KillTimer(int32_t nID) = 0;
80 80
81 81
82 virtual FX_BOOL IsSHIFTKeyDown(FX_DWORD nFlag) = 0; 82 virtual FX_BOOL IsSHIFTKeyDown(FX_DWORD nFlag) = 0;
83 virtual FX_BOOL IsCTRLKeyDown(FX_DWORD nFlag) = 0; 83 virtual FX_BOOL IsCTRLKeyDown(FX_DWORD nFlag) = 0;
84 virtual FX_BOOL IsALTKeyDown(FX_DWORD nFlag) = 0 ; 84 virtual FX_BOOL IsALTKeyDown(FX_DWORD nFlag) = 0 ;
85 virtual FX_BOOL IsINSERTKeyDown(FX_DWORD nFlag) = 0; 85 virtual FX_BOOL IsINSERTKeyDown(FX_DWORD nFlag) = 0;
86 86
87 virtual FX_SYSTEMTIME GetLocalTime() = 0; 87 virtual FX_SYSTEMTIME GetLocalTime() = 0;
88 88
89 » virtual FX_INT32» » » GetCharSet() = 0;» 89 » virtual int32_t»» » GetCharSet() = 0;»
90 » virtual void » » » » SetCharSet(FX_INT32 nCharSet) = 0; 90 » virtual void » » » » SetCharSet(int32_t nCharSet) = 0 ;
91 }; 91 };
92 92
93 #endif // FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_ 93 #endif // FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_define.h ('k') | fpdfsdk/include/fxedit/fx_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698