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

Side by Side Diff: fpdfsdk/cpdfsdk_xfawidget.cpp

Issue 2252723002: Split fpdfsdk/fsdk_baseform.h into individual classes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Split fpdfsdk/fsdk_baseform.h into individual classes. Created 4 years, 4 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
(Empty)
1 // Copyright 2016 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
jaepark 2016/08/16 20:21:32 Removed #ifdef PDF_ENABLE_XFA for the entire file.
7 #include "fpdfsdk/include/cpdfsdk_xfawidget.h"
8
9 #include "fpdfsdk/include/ipdfsdk_annothandler.h"
10 #include "xfa/fxfa/include/xfa_ffwidget.h"
11
12 CPDFSDK_XFAWidget::CPDFSDK_XFAWidget(CXFA_FFWidget* pAnnot,
13 CPDFSDK_PageView* pPageView,
14 CPDFSDK_InterForm* pInterForm)
15 : CPDFSDK_Annot(pPageView),
16 m_pInterForm(pInterForm),
17 m_hXFAWidget(pAnnot) {}
18
19 FX_BOOL CPDFSDK_XFAWidget::IsXFAField() {
20 return TRUE;
21 }
22
23 CXFA_FFWidget* CPDFSDK_XFAWidget::GetXFAWidget() const {
24 return m_hXFAWidget;
25 }
26
27 CFX_ByteString CPDFSDK_XFAWidget::GetType() const {
28 return FSDK_XFAWIDGET_TYPENAME;
29 }
30
31 CFX_ByteString CPDFSDK_XFAWidget::GetSubType() const {
32 return "";
33 }
34
35 CFX_FloatRect CPDFSDK_XFAWidget::GetRect() const {
36 CFX_RectF rcBBox;
37 GetXFAWidget()->GetRect(rcBBox);
38 return CFX_FloatRect(rcBBox.left, rcBBox.top, rcBBox.left + rcBBox.width,
39 rcBBox.top + rcBBox.height);
40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698