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

Side by Side Diff: fpdfsdk/cpdfsdk_xfawidget.cpp

Issue 2453683011: Remove FX_BOOL from fpdfsdk. (Closed)
Patch Set: Regenerate patch after rebase. Created 4 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 | « fpdfsdk/cpdfsdk_xfawidget.h ('k') | fpdfsdk/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 #include "fpdfsdk/cpdfsdk_xfawidget.h" 7 #include "fpdfsdk/cpdfsdk_xfawidget.h"
8 8
9 #include "fpdfsdk/ipdfsdk_annothandler.h" 9 #include "fpdfsdk/ipdfsdk_annothandler.h"
10 #include "xfa/fxfa/xfa_ffwidget.h" 10 #include "xfa/fxfa/xfa_ffwidget.h"
11 11
12 CPDFSDK_XFAWidget::CPDFSDK_XFAWidget(CXFA_FFWidget* pAnnot, 12 CPDFSDK_XFAWidget::CPDFSDK_XFAWidget(CXFA_FFWidget* pAnnot,
13 CPDFSDK_PageView* pPageView, 13 CPDFSDK_PageView* pPageView,
14 CPDFSDK_InterForm* pInterForm) 14 CPDFSDK_InterForm* pInterForm)
15 : CPDFSDK_Annot(pPageView), 15 : CPDFSDK_Annot(pPageView),
16 m_pInterForm(pInterForm), 16 m_pInterForm(pInterForm),
17 m_hXFAWidget(pAnnot) {} 17 m_hXFAWidget(pAnnot) {}
18 18
19 FX_BOOL CPDFSDK_XFAWidget::IsXFAField() { 19 bool CPDFSDK_XFAWidget::IsXFAField() {
20 return TRUE; 20 return true;
21 } 21 }
22 22
23 CXFA_FFWidget* CPDFSDK_XFAWidget::GetXFAWidget() const { 23 CXFA_FFWidget* CPDFSDK_XFAWidget::GetXFAWidget() const {
24 return m_hXFAWidget; 24 return m_hXFAWidget;
25 } 25 }
26 26
27 CPDF_Annot::Subtype CPDFSDK_XFAWidget::GetAnnotSubtype() const { 27 CPDF_Annot::Subtype CPDFSDK_XFAWidget::GetAnnotSubtype() const {
28 return CPDF_Annot::Subtype::XFAWIDGET; 28 return CPDF_Annot::Subtype::XFAWIDGET;
29 } 29 }
30 30
31 CFX_FloatRect CPDFSDK_XFAWidget::GetRect() const { 31 CFX_FloatRect CPDFSDK_XFAWidget::GetRect() const {
32 CFX_RectF rcBBox; 32 CFX_RectF rcBBox;
33 GetXFAWidget()->GetRect(rcBBox); 33 GetXFAWidget()->GetRect(rcBBox);
34 return CFX_FloatRect(rcBBox.left, rcBBox.top, rcBBox.left + rcBBox.width, 34 return CFX_FloatRect(rcBBox.left, rcBBox.top, rcBBox.left + rcBBox.width,
35 rcBBox.top + rcBBox.height); 35 rcBBox.top + rcBBox.height);
36 } 36 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_xfawidget.h ('k') | fpdfsdk/cpdfsdk_xfawidgethandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698