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

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

Issue 1874963002: Remove some FWL code. (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/fwl/theme/cfwl_datetimepickedtp.cpp ('k') | xfa/fwl/theme/cfwl_scrollbartp.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/basewidget/ifwl_monthcalendar.h" 10 #include "xfa/fwl/basewidget/ifwl_monthcalendar.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 case FWL_PART_MCD_Background: { 95 case FWL_PART_MCD_Background: {
96 DrawTotalBK(pParams, &pParams->m_matrix); 96 DrawTotalBK(pParams, &pParams->m_matrix);
97 break; 97 break;
98 } 98 }
99 case FWL_PART_MCD_Header: { 99 case FWL_PART_MCD_Header: {
100 DrawHeadBk(pParams, &pParams->m_matrix); 100 DrawHeadBk(pParams, &pParams->m_matrix);
101 break; 101 break;
102 } 102 }
103 case FWL_PART_MCD_LBtn: { 103 case FWL_PART_MCD_LBtn: {
104 #ifdef THEME_XPSimilar
105 FWLTHEME_STATE eState = GetState(pParams->m_dwStates); 104 FWLTHEME_STATE eState = GetState(pParams->m_dwStates);
106 DrawArrowBtn(pParams->m_pGraphics, &pParams->m_rtPart, 105 DrawArrowBtn(pParams->m_pGraphics, &pParams->m_rtPart,
107 FWLTHEME_DIRECTION_Left, eState, &pParams->m_matrix); 106 FWLTHEME_DIRECTION_Left, eState, &pParams->m_matrix);
108 #else
109 DrawLButton(pParams, &pParams->m_matrix);
110 #endif
111 break; 107 break;
112 } 108 }
113 case FWL_PART_MCD_RBtn: { 109 case FWL_PART_MCD_RBtn: {
114 #ifdef THEME_XPSimilar
115 FWLTHEME_STATE eState = GetState(pParams->m_dwStates); 110 FWLTHEME_STATE eState = GetState(pParams->m_dwStates);
116 DrawArrowBtn(pParams->m_pGraphics, &pParams->m_rtPart, 111 DrawArrowBtn(pParams->m_pGraphics, &pParams->m_rtPart,
117 FWLTHEME_DIRECTION_Right, eState, &pParams->m_matrix); 112 FWLTHEME_DIRECTION_Right, eState, &pParams->m_matrix);
118 #else
119 DrawRButton(pParams, &pParams->m_matrix);
120 #endif
121 break; 113 break;
122 } 114 }
123 case FWL_PART_MCD_HSeparator: { 115 case FWL_PART_MCD_HSeparator: {
124 DrawHSeperator(pParams, &pParams->m_matrix); 116 DrawHSeperator(pParams, &pParams->m_matrix);
125 break; 117 break;
126 } 118 }
127 case FWL_PART_MCD_DatesIn: { 119 case FWL_PART_MCD_DatesIn: {
128 DrawDatesInBK(pParams, &pParams->m_matrix); 120 DrawDatesInBK(pParams, &pParams->m_matrix);
129 break; 121 break;
130 } 122 }
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 } else { 570 } else {
579 m_pThemeData->clrCaption = ArgbEncode(0xff, 128, 128, 0); 571 m_pThemeData->clrCaption = ArgbEncode(0xff, 128, 128, 0);
580 m_pThemeData->clrSeperator = ArgbEncode(0xff, 128, 128, 64); 572 m_pThemeData->clrSeperator = ArgbEncode(0xff, 128, 128, 64);
581 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 217, 220, 191); 573 m_pThemeData->clrDatesHoverBK = ArgbEncode(0xff, 217, 220, 191);
582 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 204, 208, 183); 574 m_pThemeData->clrDatesSelectedBK = ArgbEncode(0xff, 204, 208, 183);
583 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 128, 128, 0); 575 m_pThemeData->clrDatesCircle = ArgbEncode(0xff, 128, 128, 0);
584 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0); 576 m_pThemeData->clrToday = ArgbEncode(0xff, 0, 0, 0);
585 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255); 577 m_pThemeData->clrBK = ArgbEncode(0xff, 255, 255, 255);
586 } 578 }
587 } 579 }
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_datetimepickedtp.cpp ('k') | xfa/fwl/theme/cfwl_scrollbartp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698