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

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

Issue 1946213003: Remove CLASSHASH defines in favour of an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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
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_datetimepickertp.h" 7 #include "xfa/fwl/theme/cfwl_datetimepickertp.h"
8 8
9 #include "xfa/fwl/basewidget/ifwl_datetimepicker.h" 9 #include "xfa/fwl/basewidget/ifwl_datetimepicker.h"
10 #include "xfa/fwl/core/cfwl_themebackground.h" 10 #include "xfa/fwl/core/cfwl_themebackground.h"
11 11
12 CFWL_DateTimePickerTP::CFWL_DateTimePickerTP() { 12 CFWL_DateTimePickerTP::CFWL_DateTimePickerTP() {
13 m_pThemeData = new DTPThemeData; 13 m_pThemeData = new DTPThemeData;
14 initThemeData(); 14 initThemeData();
15 } 15 }
16 CFWL_DateTimePickerTP::~CFWL_DateTimePickerTP() { 16 CFWL_DateTimePickerTP::~CFWL_DateTimePickerTP() {
17 delete m_pThemeData; 17 delete m_pThemeData;
18 } 18 }
19 FX_BOOL CFWL_DateTimePickerTP::IsValidWidget(IFWL_Widget* pWidget) { 19 FX_BOOL CFWL_DateTimePickerTP::IsValidWidget(IFWL_Widget* pWidget) {
20 if (!pWidget) 20 if (!pWidget)
21 return FALSE; 21 return FALSE;
22 return pWidget->GetClassID() == FWL_CLASSHASH_DateTimePicker; 22 return pWidget->GetClassID() == FWL_Type::DateTimePicker;
Tom Sepez 2016/05/05 16:56:48 nitto
dsinclair 2016/05/05 17:13:34 Done.
23 } 23 }
24 FX_BOOL CFWL_DateTimePickerTP::DrawBackground(CFWL_ThemeBackground* pParams) { 24 FX_BOOL CFWL_DateTimePickerTP::DrawBackground(CFWL_ThemeBackground* pParams) {
25 if (!pParams) 25 if (!pParams)
26 return FALSE; 26 return FALSE;
27 switch (pParams->m_iPart) { 27 switch (pParams->m_iPart) {
28 case CFWL_Part::Border: { 28 case CFWL_Part::Border: {
29 DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix); 29 DrawBorder(pParams->m_pGraphics, &pParams->m_rtPart, &pParams->m_matrix);
30 break; 30 break;
31 } 31 }
32 case CFWL_Part::Edge: { 32 case CFWL_Part::Edge: {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 *pData++ = ArgbEncode(255, 255, 255, 255), 93 *pData++ = ArgbEncode(255, 255, 255, 255),
94 *pData++ = ArgbEncode(255, 220, 220, 215), 94 *pData++ = ArgbEncode(255, 220, 220, 215),
95 *pData++ = ArgbEncode(255, 255, 255, 255), 95 *pData++ = ArgbEncode(255, 255, 255, 255),
96 *pData++ = ArgbEncode(255, 255, 240, 207), 96 *pData++ = ArgbEncode(255, 255, 240, 207),
97 *pData++ = ArgbEncode(255, 248, 179, 48), 97 *pData++ = ArgbEncode(255, 248, 179, 48),
98 *pData++ = ArgbEncode(255, 176, 176, 167), 98 *pData++ = ArgbEncode(255, 176, 176, 167),
99 *pData++ = ArgbEncode(255, 241, 239, 239), 99 *pData++ = ArgbEncode(255, 241, 239, 239),
100 *pData++ = ArgbEncode(255, 255, 255, 255), 100 *pData++ = ArgbEncode(255, 255, 255, 255),
101 *pData++ = ArgbEncode(255, 255, 255, 255); 101 *pData++ = ArgbEncode(255, 255, 255, 255);
102 } 102 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698