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

Unified Diff: fpdfsdk/cpdfsdk_formfillenvironment.h

Issue 2453683011: Remove FX_BOOL from fpdfsdk. (Closed)
Patch Set: Regenerate patch after rebase. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/cpdfsdk_baannothandler.cpp ('k') | fpdfsdk/cpdfsdk_formfillenvironment.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/cpdfsdk_formfillenvironment.h
diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.h b/fpdfsdk/cpdfsdk_formfillenvironment.h
index 283c06a7dfbe84217e0417ec31a28cf63f439721..24380197072c30a75ce9056979bef586fa5bc864 100644
--- a/fpdfsdk/cpdfsdk_formfillenvironment.h
+++ b/fpdfsdk/cpdfsdk_formfillenvironment.h
@@ -41,21 +41,21 @@ class CPDFSDK_FormFillEnvironment
void UpdateAllViews(CPDFSDK_PageView* pSender, CPDFSDK_Annot* pAnnot);
CPDFSDK_Annot* GetFocusAnnot() { return m_pFocusAnnot.Get(); }
- FX_BOOL SetFocusAnnot(CPDFSDK_Annot::ObservedPtr* pAnnot);
- FX_BOOL KillFocusAnnot(uint32_t nFlag);
+ bool SetFocusAnnot(CPDFSDK_Annot::ObservedPtr* pAnnot);
+ bool KillFocusAnnot(uint32_t nFlag);
void ClearAllFocusedAnnots();
- FX_BOOL ExtractPages(const std::vector<uint16_t>& arrExtraPages,
- CPDF_Document* pDstDoc);
- FX_BOOL InsertPages(int nInsertAt,
- const CPDF_Document* pSrcDoc,
- const std::vector<uint16_t>& arrSrcPages);
- FX_BOOL ReplacePages(int nPage,
- const CPDF_Document* pSrcDoc,
- const std::vector<uint16_t>& arrSrcPages);
+ bool ExtractPages(const std::vector<uint16_t>& arrExtraPages,
+ CPDF_Document* pDstDoc);
+ bool InsertPages(int nInsertAt,
+ const CPDF_Document* pSrcDoc,
+ const std::vector<uint16_t>& arrSrcPages);
+ bool ReplacePages(int nPage,
+ const CPDF_Document* pSrcDoc,
+ const std::vector<uint16_t>& arrSrcPages);
int GetPageCount() { return m_pUnderlyingDoc->GetPageCount(); }
- FX_BOOL GetPermissions(int nFlag);
+ bool GetPermissions(int nFlag);
bool GetChangeMark() const { return m_bChangeMask; }
void SetChangeMark() { m_bChangeMask = true; }
@@ -64,7 +64,7 @@ class CPDFSDK_FormFillEnvironment
UnderlyingPageType* GetPage(int nIndex);
void ProcJavascriptFun();
- FX_BOOL ProcOpenAction();
+ bool ProcOpenAction();
void Invalidate(FPDF_PAGE page,
double left,
@@ -83,9 +83,9 @@ class CPDFSDK_FormFillEnvironment
FX_SYSTEMTIME GetLocalTime() const;
void OnChange();
- FX_BOOL IsSHIFTKeyDown(uint32_t nFlag) const;
- FX_BOOL IsCTRLKeyDown(uint32_t nFlag) const;
- FX_BOOL IsALTKeyDown(uint32_t nFlag) const;
+ bool IsSHIFTKeyDown(uint32_t nFlag) const;
+ bool IsCTRLKeyDown(uint32_t nFlag) const;
+ bool IsALTKeyDown(uint32_t nFlag) const;
FPDF_PAGE GetPage(FPDF_DOCUMENT document, int nPageIndex);
FPDF_PAGE GetCurrentPage(FPDF_DOCUMENT document);
@@ -93,7 +93,7 @@ class CPDFSDK_FormFillEnvironment
void ExecuteNamedAction(const FX_CHAR* namedAction);
void OnSetFieldInputFocus(FPDF_WIDESTRING focusText,
FPDF_DWORD nTextLen,
- FX_BOOL bFocus);
+ bool bFocus);
void DoURIAction(const FX_CHAR* bsURI);
void DoGoToAction(int nPageIndex,
int zoomMode,
@@ -129,10 +129,10 @@ class CPDFSDK_FormFillEnvironment
CFX_WideString GetPlatform();
void GotoURL(FPDF_DOCUMENT document, const CFX_WideStringC& wsURL);
void GetPageViewRect(FPDF_PAGE page, FS_RECTF& dstRect);
- FX_BOOL PopupMenu(FPDF_PAGE page,
- FPDF_WIDGET hWidget,
- int menuFlag,
- CFX_PointF pt);
+ bool PopupMenu(FPDF_PAGE page,
+ FPDF_WIDGET hWidget,
+ int menuFlag,
+ CFX_PointF pt);
void Alert(FPDF_WIDESTRING Msg, FPDF_WIDESTRING Title, int Type, int Icon);
void EmailTo(FPDF_FILEHANDLER* fileHandler,
@@ -196,7 +196,7 @@ class CPDFSDK_FormFillEnvironment
FPDF_BOOL bAnnotations);
void JS_docgotoPage(int nPageNum);
- FX_BOOL IsJSInitiated() const { return m_pInfo && m_pInfo->m_pJsPlatform; }
+ bool IsJSInitiated() const { return m_pInfo && m_pInfo->m_pJsPlatform; }
CFX_ByteString GetAppName() const { return ""; }
CFX_SystemHandler* GetSysHandler() const { return m_pSysHandler.get(); }
FPDF_FORMFILLINFO* GetFormFillInfo() const { return m_pInfo; }
« no previous file with comments | « fpdfsdk/cpdfsdk_baannothandler.cpp ('k') | fpdfsdk/cpdfsdk_formfillenvironment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698