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

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

Issue 1458363005: Add constant CPDFSDK_InterForm::kNumFieldTypes (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | fpdfsdk/src/fsdk_baseform.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 #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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 public: 265 public:
266 FX_BOOL IsNeedHighLight(int nFieldType); 266 FX_BOOL IsNeedHighLight(int nFieldType);
267 void RemoveAllHighLight(); 267 void RemoveAllHighLight();
268 void SetHighlightAlpha(uint8_t alpha) { m_iHighlightAlpha = alpha; } 268 void SetHighlightAlpha(uint8_t alpha) { m_iHighlightAlpha = alpha; }
269 uint8_t GetHighlightAlpha() { return m_iHighlightAlpha; } 269 uint8_t GetHighlightAlpha() { return m_iHighlightAlpha; }
270 void SetHighlightColor(FX_COLORREF clr, int nFieldType); 270 void SetHighlightColor(FX_COLORREF clr, int nFieldType);
271 FX_COLORREF GetHighlightColor(int nFieldType); 271 FX_COLORREF GetHighlightColor(int nFieldType);
272 272
273 private: 273 private:
274 FX_COLORREF m_aHighlightColor[6]; 274 static const int kNumFieldTypes = 6;
275 FX_COLORREF m_aHighlightColor[kNumFieldTypes];
275 uint8_t m_iHighlightAlpha; 276 uint8_t m_iHighlightAlpha;
276 FX_BOOL m_bNeedHightlight[6]; 277 FX_BOOL m_bNeedHightlight[kNumFieldTypes];
277 }; 278 };
278 279
279 #define BAI_STRUCTURE 0 280 #define BAI_STRUCTURE 0
280 #define BAI_ROW 1 281 #define BAI_ROW 1
281 #define BAI_COLUMN 2 282 #define BAI_COLUMN 2
282 283
283 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot*> 284 #define CPDFSDK_Annots CFX_ArrayTemplate<CPDFSDK_Annot*>
284 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot*> 285 #define CPDFSDK_SortAnnots CGW_ArrayTemplate<CPDFSDK_Annot*>
285 class CBA_AnnotIterator { 286 class CBA_AnnotIterator {
286 public: 287 public:
(...skipping 14 matching lines...) Expand all
301 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot); 302 static CPDF_Rect GetAnnotRect(CPDFSDK_Annot* pAnnot);
302 303
303 CPDFSDK_PageView* m_pPageView; 304 CPDFSDK_PageView* m_pPageView;
304 CFX_ByteString m_sType; 305 CFX_ByteString m_sType;
305 CFX_ByteString m_sSubType; 306 CFX_ByteString m_sSubType;
306 int m_nTabs; 307 int m_nTabs;
307 CPDFSDK_Annots m_Annots; 308 CPDFSDK_Annots m_Annots;
308 }; 309 };
309 310
310 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_ 311 #endif // FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/fsdk_baseform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698