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

Side by Side Diff: fpdfsdk/fsdk_mgr.cpp

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/fsdk_baseform.cpp ('k') | fpdfsdk/fxedit/fxet_ap.cpp » ('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 #include "fpdfsdk/include/fsdk_mgr.h" 7 #include "fpdfsdk/include/fsdk_mgr.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 void DestroyMenu(FX_HMENU hMenu) override {} 91 void DestroyMenu(FX_HMENU hMenu) override {}
92 CFX_ByteString GetNativeTrueTypeFont(int32_t nCharset) override; 92 CFX_ByteString GetNativeTrueTypeFont(int32_t nCharset) override;
93 FX_BOOL FindNativeTrueTypeFont(int32_t nCharset, 93 FX_BOOL FindNativeTrueTypeFont(int32_t nCharset,
94 CFX_ByteString sFontFaceName) override; 94 CFX_ByteString sFontFaceName) override;
95 CPDF_Font* AddNativeTrueTypeFontToPDF(CPDF_Document* pDoc, 95 CPDF_Font* AddNativeTrueTypeFontToPDF(CPDF_Document* pDoc,
96 CFX_ByteString sFontFaceName, 96 CFX_ByteString sFontFaceName,
97 uint8_t nCharset) override; 97 uint8_t nCharset) override;
98 int32_t SetTimer(int32_t uElapse, TimerCallback lpTimerFunc) override; 98 int32_t SetTimer(int32_t uElapse, TimerCallback lpTimerFunc) override;
99 void KillTimer(int32_t nID) override; 99 void KillTimer(int32_t nID) override;
100 FX_BOOL IsSHIFTKeyDown(FX_DWORD nFlag) override { 100 FX_BOOL IsSHIFTKeyDown(uint32_t nFlag) override {
101 return m_pEnv->FFI_IsSHIFTKeyDown(nFlag); 101 return m_pEnv->FFI_IsSHIFTKeyDown(nFlag);
102 } 102 }
103 FX_BOOL IsCTRLKeyDown(FX_DWORD nFlag) override { 103 FX_BOOL IsCTRLKeyDown(uint32_t nFlag) override {
104 return m_pEnv->FFI_IsCTRLKeyDown(nFlag); 104 return m_pEnv->FFI_IsCTRLKeyDown(nFlag);
105 } 105 }
106 FX_BOOL IsALTKeyDown(FX_DWORD nFlag) override { 106 FX_BOOL IsALTKeyDown(uint32_t nFlag) override {
107 return m_pEnv->FFI_IsALTKeyDown(nFlag); 107 return m_pEnv->FFI_IsALTKeyDown(nFlag);
108 } 108 }
109 FX_BOOL IsINSERTKeyDown(FX_DWORD nFlag) override { 109 FX_BOOL IsINSERTKeyDown(uint32_t nFlag) override {
110 return m_pEnv->FFI_IsINSERTKeyDown(nFlag); 110 return m_pEnv->FFI_IsINSERTKeyDown(nFlag);
111 } 111 }
112 FX_SYSTEMTIME GetLocalTime() override; 112 FX_SYSTEMTIME GetLocalTime() override;
113 int32_t GetCharSet() override { return m_nCharSet; } 113 int32_t GetCharSet() override { return m_nCharSet; }
114 void SetCharSet(int32_t nCharSet) override { m_nCharSet = nCharSet; } 114 void SetCharSet(int32_t nCharSet) override { m_nCharSet = nCharSet; }
115 115
116 private: 116 private:
117 CPDFDoc_Environment* m_pEnv; 117 CPDFDoc_Environment* m_pEnv;
118 int m_nCharSet; 118 int m_nCharSet;
119 }; 119 };
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot(); 1200 CPDFSDK_Annot* pFocusAnnot = m_pSDKDoc->GetFocusAnnot();
1201 if (!pFocusAnnot) 1201 if (!pFocusAnnot)
1202 return nullptr; 1202 return nullptr;
1203 1203
1204 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) { 1204 for (CPDFSDK_Annot* pAnnot : m_fxAnnotArray) {
1205 if (pAnnot == pFocusAnnot) 1205 if (pAnnot == pFocusAnnot)
1206 return pAnnot; 1206 return pAnnot;
1207 } 1207 }
1208 return nullptr; 1208 return nullptr;
1209 } 1209 }
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_baseform.cpp ('k') | fpdfsdk/fxedit/fxet_ap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698