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

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

Issue 1177483002: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
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_baseannot.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_BASEFORM_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 8 #define FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
9 9
10 #if _FX_OS_ == _FX_ANDROID_ 10 #if _FX_OS_ == _FX_ANDROID_
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 CPDF_FormField* GetFormField() const; 121 CPDF_FormField* GetFormField() const;
122 CPDF_FormControl* GetFormControl() const; 122 CPDF_FormControl* GetFormControl() const;
123 static CPDF_FormControl* GetFormControl(CPDF_InterForm* p InterForm, CPDF_Dictionary* pAnnotDict); 123 static CPDF_FormControl* GetFormControl(CPDF_InterForm* p InterForm, CPDF_Dictionary* pAnnotDict);
124 124
125 void DrawShadow(CFX_R enderDevice* pDevice, CPDFSDK_PageView* pPageView); 125 void DrawShadow(CFX_R enderDevice* pDevice, CPDFSDK_PageView* pPageView);
126 126
127 void SetAppModified() ; 127 void SetAppModified() ;
128 void ClearAppModified (); 128 void ClearAppModified ();
129 FX_BOOL IsAppModified() const; 129 FX_BOOL IsAppModified() const;
130 130
131 » FX_INT32» » » » » » GetAppearanceAge () const; 131 » int32_t»» » » » » GetAppearanceAge() const ;
132 » FX_INT32» » » » » » GetValueAge() co nst; 132 » int32_t»» » » » » GetValueAge() const;
133 133
134 private: 134 private:
135 void ResetAppearance_ PushButton(); 135 void ResetAppearance_ PushButton();
136 void ResetAppearance_ CheckBox(); 136 void ResetAppearance_ CheckBox();
137 void ResetAppearance_ RadioButton(); 137 void ResetAppearance_ RadioButton();
138 void ResetAppearance_ ComboBox(FX_LPCWSTR sValue); 138 void ResetAppearance_ ComboBox(FX_LPCWSTR sValue);
139 void ResetAppearance_ ListBox(); 139 void ResetAppearance_ ListBox();
140 void ResetAppearance_ TextField(FX_LPCWSTR sValue); 140 void ResetAppearance_ TextField(FX_LPCWSTR sValue);
141 141
142 CPDF_Rect GetClientRect() const; 142 CPDF_Rect GetClientRect() const;
(...skipping 11 matching lines...) Expand all
154 void RemoveAppearance (const CFX_ByteString& sAPType); 154 void RemoveAppearance (const CFX_ByteString& sAPType);
155 public: 155 public:
156 FX_BOOL IsWidgetAppearan ceValid(CPDF_Annot::AppearanceMode mode); 156 FX_BOOL IsWidgetAppearan ceValid(CPDF_Annot::AppearanceMode mode);
157 void DrawAppearance(C FX_RenderDevice* pDevice, const CPDF_Matrix* pUser2Device, 157 void DrawAppearance(C FX_RenderDevice* pDevice, const CPDF_Matrix* pUser2Device,
158 CPDF_Annot::AppearanceMode mode, const CPDF_RenderOptions* pOpti ons); 158 CPDF_Annot::AppearanceMode mode, const CPDF_RenderOptions* pOpti ons);
159 public: 159 public:
160 FX_BOOL HitTest(FX_FLOAT pageX, FX_FLOAT pageY); 160 FX_BOOL HitTest(FX_FLOAT pageX, FX_FLOAT pageY);
161 private: 161 private:
162 CPDFSDK_InterForm* m_pInterForm; 162 CPDFSDK_InterForm* m_pInterForm;
163 FX_BOOL m_bAppModified; 163 FX_BOOL m_bAppModified;
164 » FX_INT32» » » » » » m_nAppAge; 164 » int32_t»» » » » » m_nAppAge;
165 » FX_INT32» » » » » » m_nValueAge; 165 » int32_t»» » » » » m_nValueAge;
166 }; 166 };
167 167
168 #define CPDFSDK_WidgetMap CFX_MapPtrTemplate<CPDF_ FormControl*, CPDFSDK_Widget*> 168 #define CPDFSDK_WidgetMap CFX_MapPtrTemplate<CPDF_ FormControl*, CPDFSDK_Widget*>
169 169
170 class CPDFSDK_InterForm : public CPDF_FormNotify 170 class CPDFSDK_InterForm : public CPDF_FormNotify
171 { 171 {
172 public: 172 public:
173 CPDFSDK_InterForm(CPDFSDK_Document* pDocument); 173 CPDFSDK_InterForm(CPDFSDK_Document* pDocument);
174 virtual ~CPDFSDK_InterForm(); 174 virtual ~CPDFSDK_InterForm();
175 175
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 private: 238 private:
239 CPDFSDK_Document* m_pDocument; 239 CPDFSDK_Document* m_pDocument;
240 CPDF_InterForm* m_pInterForm; 240 CPDF_InterForm* m_pInterForm;
241 CPDFSDK_WidgetMap m_Map; 241 CPDFSDK_WidgetMap m_Map;
242 FX_BOOL m_bCalculate; 242 FX_BOOL m_bCalculate;
243 FX_BOOL m_bBusy; 243 FX_BOOL m_bBusy;
244 244
245 public: 245 public:
246 FX_BOOL IsNeedHighLight(int nFieldType); 246 FX_BOOL IsNeedHighLight(int nFieldType);
247 void RemoveAllHighLight(); 247 void RemoveAllHighLight();
248 » void SetHighlightAlpha(FX_BYTE alpha) {m_iHighlightAlpha = alpha;} 248 » void SetHighlightAlpha(uint8_t alpha) {m_iHighlightAlpha = alpha;}
249 » FX_BYTE GetHighlightAlpha() {return m_iHighlightAlpha;} 249 » uint8_t GetHighlightAlpha() {return m_iHighlightAlpha;}
250 void SetHighlightColor(FX_COLORREF clr, int nFieldType); 250 void SetHighlightColor(FX_COLORREF clr, int nFieldType);
251 FX_COLORREF GetHighlightColor(int nFieldType); 251 FX_COLORREF GetHighlightColor(int nFieldType);
252 private: 252 private:
253 FX_COLORREF m_aHighlightColor[6]; 253 FX_COLORREF m_aHighlightColor[6];
254 » FX_BYTE m_iHighlightAlpha; 254 » uint8_t m_iHighlightAlpha;
255 FX_BOOL m_bNeedHightlight[6]; 255 FX_BOOL m_bNeedHightlight[6];
256 }; 256 };
257 257
258 #define BAI_STRUCTURE 0 258 #define BAI_STRUCTURE 0
259 #define BAI_ROW 1 259 #define BAI_ROW 1
260 #define BAI_COLUMN 2 260 #define BAI_COLUMN 2
261 261
262 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot* > 262 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot* >
263 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot* > 263 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot* >
264 class CBA_AnnotIterator 264 class CBA_AnnotIterator
(...skipping 14 matching lines...) Expand all
279 static CPDF_Rect GetAnnotRect(CPD FSDK_Annot* pAnnot); 279 static CPDF_Rect GetAnnotRect(CPD FSDK_Annot* pAnnot);
280 280
281 CPDFSDK_PageView* m_pPageView; 281 CPDFSDK_PageView* m_pPageView;
282 CFX_ByteString m_sType; 282 CFX_ByteString m_sType;
283 CFX_ByteString m_sSubType; 283 CFX_ByteString m_sSubType;
284 int m_nTabs; 284 int m_nTabs;
285 CPDFSDK_Annots m_Annots; 285 CPDFSDK_Annots m_Annots;
286 }; 286 };
287 287
288 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 288 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_baseannot.h ('k') | fpdfsdk/include/fx_systemhandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698