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

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

Issue 2295953002: Use enum class for subtypes of CPDF_Annot. (Closed)
Patch Set: Use enum class for subtypes of CPDF_Annot. 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 | « fpdfsdk/include/cpdfsdk_widgethandler.h ('k') | fpdfsdk/include/cpdfsdk_xfawidgethandler.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 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 FPDFSDK_INCLUDE_CPDFSDK_XFAWIDGET_H_ 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_XFAWIDGET_H_
8 #define FPDFSDK_INCLUDE_CPDFSDK_XFAWIDGET_H_ 8 #define FPDFSDK_INCLUDE_CPDFSDK_XFAWIDGET_H_
9 9
10 #include "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
11 #include "core/fxcrt/include/fx_string.h" 11 #include "core/fxcrt/include/fx_string.h"
12 #include "fpdfsdk/include/cpdfsdk_annot.h" 12 #include "fpdfsdk/include/cpdfsdk_annot.h"
13 13
14 class CPDFSDK_InterForm; 14 class CPDFSDK_InterForm;
15 class CPDFSDK_PageView; 15 class CPDFSDK_PageView;
16 class CXFA_FFWidget; 16 class CXFA_FFWidget;
17 17
18 class CPDFSDK_XFAWidget : public CPDFSDK_Annot { 18 class CPDFSDK_XFAWidget : public CPDFSDK_Annot {
19 public: 19 public:
20 CPDFSDK_XFAWidget(CXFA_FFWidget* pAnnot, 20 CPDFSDK_XFAWidget(CXFA_FFWidget* pAnnot,
21 CPDFSDK_PageView* pPageView, 21 CPDFSDK_PageView* pPageView,
22 CPDFSDK_InterForm* pInterForm); 22 CPDFSDK_InterForm* pInterForm);
23 ~CPDFSDK_XFAWidget() override {} 23 ~CPDFSDK_XFAWidget() override {}
24 24
25 FX_BOOL IsXFAField() override; 25 FX_BOOL IsXFAField() override;
26 CXFA_FFWidget* GetXFAWidget() const override; 26 CXFA_FFWidget* GetXFAWidget() const override;
27 CFX_ByteString GetAnnotSubtype() const override; 27 CPDF_Annot::Subtype GetAnnotSubtype() const override;
28 CFX_FloatRect GetRect() const override; 28 CFX_FloatRect GetRect() const override;
29 29
30 CPDFSDK_InterForm* GetInterForm() { return m_pInterForm; } 30 CPDFSDK_InterForm* GetInterForm() { return m_pInterForm; }
31 31
32 private: 32 private:
33 CPDFSDK_InterForm* m_pInterForm; 33 CPDFSDK_InterForm* m_pInterForm;
34 CXFA_FFWidget* m_hXFAWidget; 34 CXFA_FFWidget* m_hXFAWidget;
35 }; 35 };
36 36
37 #endif // FPDFSDK_INCLUDE_CPDFSDK_XFAWIDGET_H_ 37 #endif // FPDFSDK_INCLUDE_CPDFSDK_XFAWIDGET_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/cpdfsdk_widgethandler.h ('k') | fpdfsdk/include/cpdfsdk_xfawidgethandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698