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

Side by Side Diff: xfa/fwl/theme/cfwl_edittp.cpp

Issue 2524173002: Merge IFWL and CFWL classes. (Closed)
Patch Set: make chrome build happy Created 4 years 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
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/fwl/theme/cfwl_edittp.h" 7 #include "xfa/fwl/theme/cfwl_edittp.h"
8 8
9 #include "xfa/fwl/core/cfwl_edit.h"
9 #include "xfa/fwl/core/cfwl_themebackground.h" 10 #include "xfa/fwl/core/cfwl_themebackground.h"
10 #include "xfa/fwl/core/ifwl_edit.h" 11 #include "xfa/fwl/core/cfwl_widget.h"
11 #include "xfa/fwl/core/ifwl_widget.h"
12 #include "xfa/fxfa/app/xfa_fwltheme.h" 12 #include "xfa/fxfa/app/xfa_fwltheme.h"
13 #include "xfa/fxfa/xfa_ffwidget.h" 13 #include "xfa/fxfa/xfa_ffwidget.h"
14 #include "xfa/fxgraphics/cfx_color.h" 14 #include "xfa/fxgraphics/cfx_color.h"
15 #include "xfa/fxgraphics/cfx_path.h" 15 #include "xfa/fxgraphics/cfx_path.h"
16 16
17 CFWL_EditTP::CFWL_EditTP() {} 17 CFWL_EditTP::CFWL_EditTP() {}
18 CFWL_EditTP::~CFWL_EditTP() {} 18 CFWL_EditTP::~CFWL_EditTP() {}
19 19
20 bool CFWL_EditTP::IsValidWidget(IFWL_Widget* pWidget) { 20 bool CFWL_EditTP::IsValidWidget(CFWL_Widget* pWidget) {
21 return pWidget && pWidget->GetClassID() == FWL_Type::Edit; 21 return pWidget && pWidget->GetClassID() == FWL_Type::Edit;
22 } 22 }
23 23
24 void CFWL_EditTP::DrawBackground(CFWL_ThemeBackground* pParams) { 24 void CFWL_EditTP::DrawBackground(CFWL_ThemeBackground* pParams) {
25 if (CFWL_Part::CombTextLine == pParams->m_iPart) { 25 if (CFWL_Part::CombTextLine == pParams->m_iPart) {
26 CXFA_FFWidget* pWidget = XFA_ThemeGetOuterWidget(pParams->m_pWidget); 26 CXFA_FFWidget* pWidget = XFA_ThemeGetOuterWidget(pParams->m_pWidget);
27 FX_ARGB cr = 0xFF000000; 27 FX_ARGB cr = 0xFF000000;
28 FX_FLOAT fWidth = 1.0f; 28 FX_FLOAT fWidth = 1.0f;
29 if (CXFA_Border borderUI = pWidget->GetDataAcc()->GetUIBorder()) { 29 if (CXFA_Border borderUI = pWidget->GetDataAcc()->GetUIBorder()) {
30 CXFA_Edge edge = borderUI.GetEdge(0); 30 CXFA_Edge edge = borderUI.GetEdge(0);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 void CFWL_EditTP::Initialize() { 98 void CFWL_EditTP::Initialize() {
99 InitTTO(); 99 InitTTO();
100 CFWL_WidgetTP::Initialize(); 100 CFWL_WidgetTP::Initialize();
101 } 101 }
102 102
103 void CFWL_EditTP::Finalize() { 103 void CFWL_EditTP::Finalize() {
104 FinalizeTTO(); 104 FinalizeTTO();
105 CFWL_WidgetTP::Finalize(); 105 CFWL_WidgetTP::Finalize();
106 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698