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

Side by Side Diff: fpdfsdk/src/fsdk_baseform.cpp

Issue 1402413004: Add type cast definitions for CPDF_Stream. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 2 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
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 "../../third_party/base/nonstd_unique_ptr.h" 7 #include "../../third_party/base/nonstd_unique_ptr.h"
8 #include "../include/fsdk_define.h" 8 #include "../include/fsdk_define.h"
9 #include "../include/fsdk_mgr.h" 9 #include "../include/fsdk_mgr.h"
10 #include "../include/fsdk_baseannot.h" 10 #include "../include/fsdk_baseannot.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 if (!psub) 55 if (!psub)
56 return FALSE; 56 return FALSE;
57 57
58 int nFieldType = GetFieldType(); 58 int nFieldType = GetFieldType();
59 switch (nFieldType) { 59 switch (nFieldType) {
60 case FIELDTYPE_PUSHBUTTON: 60 case FIELDTYPE_PUSHBUTTON:
61 case FIELDTYPE_COMBOBOX: 61 case FIELDTYPE_COMBOBOX:
62 case FIELDTYPE_LISTBOX: 62 case FIELDTYPE_LISTBOX:
63 case FIELDTYPE_TEXTFIELD: 63 case FIELDTYPE_TEXTFIELD:
64 case FIELDTYPE_SIGNATURE: 64 case FIELDTYPE_SIGNATURE:
65 return psub->GetType() == PDFOBJ_STREAM; 65 return psub->IsStream();
66 case FIELDTYPE_CHECKBOX: 66 case FIELDTYPE_CHECKBOX:
67 case FIELDTYPE_RADIOBUTTON: 67 case FIELDTYPE_RADIOBUTTON:
68 if (CPDF_Dictionary* pSubDict = psub->AsDictionary()) { 68 if (CPDF_Dictionary* pSubDict = psub->AsDictionary()) {
69 return pSubDict->GetStream(GetAppState()) != NULL; 69 return pSubDict->GetStream(GetAppState()) != NULL;
70 } 70 }
71 return FALSE; 71 return FALSE;
72 } 72 }
73 return TRUE; 73 return TRUE;
74 } 74 }
75 75
(...skipping 2531 matching lines...) Expand 10 before | Expand all | Expand 10 after
2607 ASSERT(pAnnot != NULL); 2607 ASSERT(pAnnot != NULL);
2608 2608
2609 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); 2609 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot();
2610 ASSERT(pPDFAnnot != NULL); 2610 ASSERT(pPDFAnnot != NULL);
2611 2611
2612 CPDF_Rect rcAnnot; 2612 CPDF_Rect rcAnnot;
2613 pPDFAnnot->GetRect(rcAnnot); 2613 pPDFAnnot->GetRect(rcAnnot);
2614 2614
2615 return rcAnnot; 2615 return rcAnnot;
2616 } 2616 }
OLDNEW
« core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp ('K') | « fpdfsdk/src/fpdfppo.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698