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

Side by Side Diff: core/fpdfdoc/include/cpdf_formcontrol.h

Issue 2334323005: Rename dictionary set and get methods (Closed)
Patch Set: Created 4 years, 3 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 | « core/fpdfdoc/include/cpdf_action.h ('k') | core/fpdftext/cpdf_textpage.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 CORE_FPDFDOC_INCLUDE_CPDF_FORMCONTROL_H_ 7 #ifndef CORE_FPDFDOC_INCLUDE_CPDF_FORMCONTROL_H_
8 #define CORE_FPDFDOC_INCLUDE_CPDF_FORMCONTROL_H_ 8 #define CORE_FPDFDOC_INCLUDE_CPDF_FORMCONTROL_H_
9 9
10 #include "core/fpdfdoc/cpdf_apsettings.h" 10 #include "core/fpdfdoc/cpdf_apsettings.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class CPDF_Stream; 43 class CPDF_Stream;
44 44
45 class CPDF_FormControl { 45 class CPDF_FormControl {
46 public: 46 public:
47 enum HighlightingMode { None = 0, Invert, Outline, Push, Toggle }; 47 enum HighlightingMode { None = 0, Invert, Outline, Push, Toggle };
48 48
49 CPDF_FormField::Type GetType() const { return m_pField->GetType(); } 49 CPDF_FormField::Type GetType() const { return m_pField->GetType(); }
50 CPDF_InterForm* GetInterForm() const { return m_pForm; } 50 CPDF_InterForm* GetInterForm() const { return m_pForm; }
51 CPDF_FormField* GetField() const { return m_pField; } 51 CPDF_FormField* GetField() const { return m_pField; }
52 CPDF_Dictionary* GetWidget() const { return m_pWidgetDict; } 52 CPDF_Dictionary* GetWidget() const { return m_pWidgetDict; }
53 CFX_FloatRect GetRect() const { return m_pWidgetDict->GetRectBy("Rect"); } 53 CFX_FloatRect GetRect() const { return m_pWidgetDict->GetRectFor("Rect"); }
54 54
55 void DrawControl(CFX_RenderDevice* pDevice, 55 void DrawControl(CFX_RenderDevice* pDevice,
56 CFX_Matrix* pMatrix, 56 CFX_Matrix* pMatrix,
57 CPDF_Page* pPage, 57 CPDF_Page* pPage,
58 CPDF_Annot::AppearanceMode mode, 58 CPDF_Annot::AppearanceMode mode,
59 const CPDF_RenderOptions* pOptions = nullptr); 59 const CPDF_RenderOptions* pOptions = nullptr);
60 60
61 CFX_ByteString GetCheckedAPState(); 61 CFX_ByteString GetCheckedAPState();
62 CFX_WideString GetExportValue() const; 62 CFX_WideString GetExportValue() const;
63 63
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 CFX_WideString GetCaption(const CFX_ByteString& csEntry); 125 CFX_WideString GetCaption(const CFX_ByteString& csEntry);
126 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry); 126 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry);
127 CPDF_ApSettings GetMK() const; 127 CPDF_ApSettings GetMK() const;
128 128
129 CPDF_FormField* const m_pField; 129 CPDF_FormField* const m_pField;
130 CPDF_Dictionary* const m_pWidgetDict; 130 CPDF_Dictionary* const m_pWidgetDict;
131 CPDF_InterForm* const m_pForm; 131 CPDF_InterForm* const m_pForm;
132 }; 132 };
133 133
134 #endif // CORE_FPDFDOC_INCLUDE_CPDF_FORMCONTROL_H_ 134 #endif // CORE_FPDFDOC_INCLUDE_CPDF_FORMCONTROL_H_
OLDNEW
« no previous file with comments | « core/fpdfdoc/include/cpdf_action.h ('k') | core/fpdftext/cpdf_textpage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698