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

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

Issue 1835693002: Remove FX_DWORD from fpdfsdk/ and testing/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/fx_systemhandler.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_FSDK_MGR_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_
8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 fxtime.wYear = systime.wYear; 96 fxtime.wYear = systime.wYear;
97 } 97 }
98 return fxtime; 98 return fxtime;
99 } 99 }
100 100
101 void FFI_OnChange() { 101 void FFI_OnChange() {
102 if (m_pInfo && m_pInfo->FFI_OnChange) 102 if (m_pInfo && m_pInfo->FFI_OnChange)
103 m_pInfo->FFI_OnChange(m_pInfo); 103 m_pInfo->FFI_OnChange(m_pInfo);
104 } 104 }
105 105
106 FX_BOOL FFI_IsSHIFTKeyDown(FX_DWORD nFlag) const { 106 FX_BOOL FFI_IsSHIFTKeyDown(uint32_t nFlag) const {
107 return (nFlag & FWL_EVENTFLAG_ShiftKey) != 0; 107 return (nFlag & FWL_EVENTFLAG_ShiftKey) != 0;
108 } 108 }
109 109
110 FX_BOOL FFI_IsCTRLKeyDown(FX_DWORD nFlag) const { 110 FX_BOOL FFI_IsCTRLKeyDown(uint32_t nFlag) const {
111 return (nFlag & FWL_EVENTFLAG_ControlKey) != 0; 111 return (nFlag & FWL_EVENTFLAG_ControlKey) != 0;
112 } 112 }
113 113
114 FX_BOOL FFI_IsALTKeyDown(FX_DWORD nFlag) const { 114 FX_BOOL FFI_IsALTKeyDown(uint32_t nFlag) const {
115 return (nFlag & FWL_EVENTFLAG_AltKey) != 0; 115 return (nFlag & FWL_EVENTFLAG_AltKey) != 0;
116 } 116 }
117 117
118 FX_BOOL FFI_IsINSERTKeyDown(FX_DWORD nFlag) const { return FALSE; } 118 FX_BOOL FFI_IsINSERTKeyDown(uint32_t nFlag) const { return FALSE; }
119 119
120 FPDF_PAGE FFI_GetPage(FPDF_DOCUMENT document, int nPageIndex) { 120 FPDF_PAGE FFI_GetPage(FPDF_DOCUMENT document, int nPageIndex) {
121 if (m_pInfo && m_pInfo->FFI_GetPage) 121 if (m_pInfo && m_pInfo->FFI_GetPage)
122 return m_pInfo->FFI_GetPage(m_pInfo, document, nPageIndex); 122 return m_pInfo->FFI_GetPage(m_pInfo, document, nPageIndex);
123 return NULL; 123 return NULL;
124 } 124 }
125 125
126 FPDF_PAGE FFI_GetCurrentPage(FPDF_DOCUMENT document) { 126 FPDF_PAGE FFI_GetCurrentPage(FPDF_DOCUMENT document) {
127 if (m_pInfo && m_pInfo->FFI_GetCurrentPage) 127 if (m_pInfo && m_pInfo->FFI_GetCurrentPage)
128 return m_pInfo->FFI_GetCurrentPage(m_pInfo, document); 128 return m_pInfo->FFI_GetCurrentPage(m_pInfo, document);
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 CFX_ByteString bsRet = CFX_ByteString(pbuff, nActualLen); 391 CFX_ByteString bsRet = CFX_ByteString(pbuff, nActualLen);
392 CFX_WideString wsRet = CFX_WideString::FromUTF16LE( 392 CFX_WideString wsRet = CFX_WideString::FromUTF16LE(
393 (unsigned short*)bsRet.GetBuffer(bsRet.GetLength()), 393 (unsigned short*)bsRet.GetBuffer(bsRet.GetLength()),
394 bsRet.GetLength() / sizeof(unsigned short)); 394 bsRet.GetLength() / sizeof(unsigned short));
395 delete[] pbuff; 395 delete[] pbuff;
396 return wsRet; 396 return wsRet;
397 } 397 }
398 return L""; 398 return L"";
399 } 399 }
400 400
401 void FFI_PageEvent(int iPageCount, FX_DWORD dwEventType) const { 401 void FFI_PageEvent(int iPageCount, uint32_t dwEventType) const {
402 if (m_pInfo && m_pInfo->FFI_PageEvent) 402 if (m_pInfo && m_pInfo->FFI_PageEvent)
403 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType); 403 m_pInfo->FFI_PageEvent(m_pInfo, iPageCount, dwEventType);
404 } 404 }
405 #endif // PDF_ENABLE_XFA 405 #endif // PDF_ENABLE_XFA
406 406
407 int JS_appAlert(const FX_WCHAR* Msg, 407 int JS_appAlert(const FX_WCHAR* Msg,
408 const FX_WCHAR* Title, 408 const FX_WCHAR* Title,
409 FX_UINT Type, 409 FX_UINT Type,
410 FX_UINT Icon); 410 FX_UINT Icon);
411 int JS_appResponse(const FX_WCHAR* Question, 411 int JS_appResponse(const FX_WCHAR* Question,
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 FX_BOOL m_bTakeOverPage; 647 FX_BOOL m_bTakeOverPage;
648 #endif // PDF_ENABLE_XFA 648 #endif // PDF_ENABLE_XFA
649 FX_BOOL m_bEnterWidget; 649 FX_BOOL m_bEnterWidget;
650 FX_BOOL m_bExitWidget; 650 FX_BOOL m_bExitWidget;
651 FX_BOOL m_bOnWidget; 651 FX_BOOL m_bOnWidget;
652 FX_BOOL m_bValid; 652 FX_BOOL m_bValid;
653 FX_BOOL m_bLocked; 653 FX_BOOL m_bLocked;
654 }; 654 };
655 655
656 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 656 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_define.h ('k') | fpdfsdk/include/fx_systemhandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698