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

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

Issue 2575093002: Cleanup widget edge related code (Closed)
Patch Set: Rebase to master 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
« no previous file with comments | « xfa/fwl/theme/cfwl_datetimepickertp.cpp ('k') | xfa/fwl/theme/cfwl_listboxtp.cpp » ('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/fwl/theme/cfwl_edittp.h" 7 #include "xfa/fwl/theme/cfwl_edittp.h"
8 8
9 #include "xfa/fwl/cfwl_edit.h" 9 #include "xfa/fwl/cfwl_edit.h"
10 #include "xfa/fwl/cfwl_themebackground.h" 10 #include "xfa/fwl/cfwl_themebackground.h"
(...skipping 27 matching lines...) Expand all
38 pParams->m_pGraphics->SetLineWidth(fWidth); 38 pParams->m_pGraphics->SetLineWidth(fWidth);
39 pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix); 39 pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix);
40 return; 40 return;
41 } 41 }
42 42
43 switch (pParams->m_iPart) { 43 switch (pParams->m_iPart) {
44 case CFWL_Part::Border: { 44 case CFWL_Part::Border: {
45 DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix); 45 DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix);
46 break; 46 break;
47 } 47 }
48 case CFWL_Part::Edge: {
49 DrawEdge(pParams->m_pGraphics, pParams->m_pWidget->GetStyles(),
50 &pParams->m_rtPart, &pParams->m_matrix);
51 break;
52 }
53 case CFWL_Part::Background: { 48 case CFWL_Part::Background: {
54 if (pParams->m_pPath) { 49 if (pParams->m_pPath) {
55 CFX_Graphics* pGraphics = pParams->m_pGraphics; 50 CFX_Graphics* pGraphics = pParams->m_pGraphics;
56 pGraphics->SaveGraphState(); 51 pGraphics->SaveGraphState();
57 CFX_Color crSelected(FWLTHEME_COLOR_BKSelected); 52 CFX_Color crSelected(FWLTHEME_COLOR_BKSelected);
58 pGraphics->SetFillColor(&crSelected); 53 pGraphics->SetFillColor(&crSelected);
59 pGraphics->FillPath(pParams->m_pPath, FXFILL_WINDING, 54 pGraphics->FillPath(pParams->m_pPath, FXFILL_WINDING,
60 &pParams->m_matrix); 55 &pParams->m_matrix);
61 pGraphics->RestoreGraphState(); 56 pGraphics->RestoreGraphState();
62 } else { 57 } else {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 92
98 void CFWL_EditTP::Initialize() { 93 void CFWL_EditTP::Initialize() {
99 InitTTO(); 94 InitTTO();
100 CFWL_WidgetTP::Initialize(); 95 CFWL_WidgetTP::Initialize();
101 } 96 }
102 97
103 void CFWL_EditTP::Finalize() { 98 void CFWL_EditTP::Finalize() {
104 FinalizeTTO(); 99 FinalizeTTO();
105 CFWL_WidgetTP::Finalize(); 100 CFWL_WidgetTP::Finalize();
106 } 101 }
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_datetimepickertp.cpp ('k') | xfa/fwl/theme/cfwl_listboxtp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698