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

Side by Side Diff: xfa/fxfa/app/xfa_ffwidget.cpp

Issue 1846993002: Remove IXFA_* interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « xfa/fxfa/app/xfa_ffwidget.h ('k') | xfa/fxfa/app/xfa_ffwidgetacc.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 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 "xfa/fxfa/app/xfa_ffwidget.h" 7 #include "xfa/fxfa/app/xfa_ffwidget.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h" 11 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h"
12 #include "core/include/fxcodec/fx_codec.h" 12 #include "core/include/fxcodec/fx_codec.h"
13 #include "xfa/fxfa/app/xfa_ffapp.h"
14 #include "xfa/fxfa/app/xfa_ffdoc.h"
15 #include "xfa/fxfa/app/xfa_ffdocview.h"
16 #include "xfa/fxfa/app/xfa_ffpageview.h"
17 #include "xfa/fxfa/app/xfa_textlayout.h" 13 #include "xfa/fxfa/app/xfa_textlayout.h"
18 #include "xfa/fxgraphics/cfx_color.h" 14 #include "xfa/fxgraphics/cfx_color.h"
19 #include "xfa/fxgraphics/cfx_path.h" 15 #include "xfa/fxgraphics/cfx_path.h"
20 #include "xfa/fxgraphics/cfx_pattern.h" 16 #include "xfa/fxgraphics/cfx_pattern.h"
21 #include "xfa/fxgraphics/cfx_shading.h" 17 #include "xfa/fxgraphics/cfx_shading.h"
22 #include "xfa/fxgraphics/include/cfx_graphics.h" 18 #include "xfa/fxgraphics/include/cfx_graphics.h"
19 #include "xfa/include/fxfa/xfa_ffapp.h"
20 #include "xfa/include/fxfa/xfa_ffdoc.h"
21 #include "xfa/include/fxfa/xfa_ffdocview.h"
22 #include "xfa/include/fxfa/xfa_ffpageview.h"
23 23
24 CXFA_FFWidget::CXFA_FFWidget(CXFA_FFPageView* pPageView, 24 CXFA_FFWidget::CXFA_FFWidget(CXFA_FFPageView* pPageView,
25 CXFA_WidgetAcc* pDataAcc) 25 CXFA_WidgetAcc* pDataAcc)
26 : CXFA_ContentLayoutItem(pDataAcc->GetNode()), 26 : CXFA_ContentLayoutItem(pDataAcc->GetNode()),
27 m_pPageView(pPageView), 27 m_pPageView(pPageView),
28 m_pDataAcc(pDataAcc) { 28 m_pDataAcc(pDataAcc) {
29 m_rtWidget.Set(0, 0, 0, 0); 29 m_rtWidget.Set(0, 0, 0, 0);
30 } 30 }
31 CXFA_FFWidget::~CXFA_FFWidget() {} 31 CXFA_FFWidget::~CXFA_FFWidget() {}
32 IXFA_PageView* CXFA_FFWidget::GetPageView() { 32 CXFA_FFPageView* CXFA_FFWidget::GetPageView() {
33 return m_pPageView; 33 return m_pPageView;
34 } 34 }
35 void CXFA_FFWidget::SetPageView(IXFA_PageView* pPageView) { 35 void CXFA_FFWidget::SetPageView(CXFA_FFPageView* pPageView) {
36 m_pPageView = static_cast<CXFA_FFPageView*>(pPageView); 36 m_pPageView = pPageView;
37 } 37 }
38 void CXFA_FFWidget::GetWidgetRect(CFX_RectF& rtWidget) { 38 void CXFA_FFWidget::GetWidgetRect(CFX_RectF& rtWidget) {
39 if ((m_dwStatus & XFA_WIDGETSTATUS_RectCached) == 0) { 39 if ((m_dwStatus & XFA_WIDGETSTATUS_RectCached) == 0) {
40 m_dwStatus |= XFA_WIDGETSTATUS_RectCached; 40 m_dwStatus |= XFA_WIDGETSTATUS_RectCached;
41 GetRect(m_rtWidget); 41 GetRect(m_rtWidget);
42 } 42 }
43 rtWidget = m_rtWidget; 43 rtWidget = m_rtWidget;
44 } 44 }
45 CFX_RectF CXFA_FFWidget::ReCacheWidgetRect() { 45 CFX_RectF CXFA_FFWidget::ReCacheWidgetRect() {
46 m_dwStatus |= XFA_WIDGETSTATUS_RectCached; 46 m_dwStatus |= XFA_WIDGETSTATUS_RectCached;
(...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1956 iType != XFA_ELEMENT_Rectangle) { 1956 iType != XFA_ELEMENT_Rectangle) {
1957 return; 1957 return;
1958 } 1958 }
1959 CXFA_StrokeArray strokes; 1959 CXFA_StrokeArray strokes;
1960 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) { 1960 if (!(dwFlags & XFA_DRAWBOX_ForceRound) && iType != XFA_ELEMENT_Arc) {
1961 box.GetStrokes(strokes); 1961 box.GetStrokes(strokes);
1962 } 1962 }
1963 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags); 1963 XFA_BOX_Fill(box, strokes, pGS, rtWidget, pMatrix, dwFlags);
1964 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags); 1964 XFA_BOX_Stroke(box, strokes, pGS, rtWidget, pMatrix, dwFlags);
1965 } 1965 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffwidget.h ('k') | xfa/fxfa/app/xfa_ffwidgetacc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698