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

Side by Side Diff: xfa/fwl/theme/cfwl_monthcalendartp.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_listboxtp.cpp ('k') | xfa/fwl/theme/cfwl_pictureboxtp.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_monthcalendartp.h" 7 #include "xfa/fwl/theme/cfwl_monthcalendartp.h"
8 8
9 #include "xfa/fde/tto/fde_textout.h" 9 #include "xfa/fde/tto/fde_textout.h"
10 #include "xfa/fwl/cfwl_monthcalendar.h" 10 #include "xfa/fwl/cfwl_monthcalendar.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void CFWL_MonthCalendarTP::DrawBackground(CFWL_ThemeBackground* pParams) { 62 void CFWL_MonthCalendarTP::DrawBackground(CFWL_ThemeBackground* pParams) {
63 if (!pParams) 63 if (!pParams)
64 return; 64 return;
65 65
66 switch (pParams->m_iPart) { 66 switch (pParams->m_iPart) {
67 case CFWL_Part::Border: { 67 case CFWL_Part::Border: {
68 DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix); 68 DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix);
69 break; 69 break;
70 } 70 }
71 case CFWL_Part::Edge: {
72 DrawEdge(pParams->m_pGraphics, pParams->m_pWidget->GetStyles(),
73 &pParams->m_rtPart, &pParams->m_matrix);
74 break;
75 }
76 case CFWL_Part::Background: { 71 case CFWL_Part::Background: {
77 DrawTotalBK(pParams, &pParams->m_matrix); 72 DrawTotalBK(pParams, &pParams->m_matrix);
78 break; 73 break;
79 } 74 }
80 case CFWL_Part::Header: { 75 case CFWL_Part::Header: {
81 DrawHeadBk(pParams, &pParams->m_matrix); 76 DrawHeadBk(pParams, &pParams->m_matrix);
82 break; 77 break;
83 } 78 }
84 case CFWL_Part::LBtn: { 79 case CFWL_Part::LBtn: {
85 FWLTHEME_STATE eState = GetState(pParams->m_dwStates); 80 FWLTHEME_STATE eState = GetState(pParams->m_dwStates);
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 537
543 void CFWL_MonthCalendarTP::SetThemeData() { 538 void CFWL_MonthCalendarTP::SetThemeData() {
544 m_pThemeData->clrCaption = ArgbEncode(0xff, 0, 153, 255); 539 m_pThemeData->clrCaption = ArgbEncode(0xff, 0, 153, 255);
545 m_pThemeData->clrSeperator = ArgbEncode(0xff, 141, 161, 239); 540 m_pThemeData->clrSeperator = ArgbEncode(0xff, 141, 161, 239);
546 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 193, 211, 251); 541 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 193, 211, 251);
547 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 173, 188, 239); 542 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 173, 188, 239);
548 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 103, 144, 209); 543 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 103, 144, 209);
549 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0); 544 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0);
550 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255); 545 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255);
551 } 546 }
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_listboxtp.cpp ('k') | xfa/fwl/theme/cfwl_pictureboxtp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698