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

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

Issue 1834323003: Move xfa/include/fwl/{theme,lightwidget} to xfa/fwl (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
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/include/fwl/theme/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;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 argbFill = 0xFFF0F0F0; 105 argbFill = 0xFFF0F0F0;
106 break; 106 break;
107 } 107 }
108 } 108 }
109 DrawArrow(pParams->m_pGraphics, &pParams->m_rtPart, FWLTHEME_DIRECTION_Down, 109 DrawArrow(pParams->m_pGraphics, &pParams->m_rtPart, FWLTHEME_DIRECTION_Down,
110 argbFill, bPressed, pMatrix); 110 argbFill, bPressed, pMatrix);
111 } 111 }
112 #endif 112 #endif
113 void CFWL_DateTimePickerTP::initThemeData() { 113 void CFWL_DateTimePickerTP::initThemeData() {
114 uint32_t* pData = (uint32_t*)&m_pThemeData->BoxBkColor; 114 uint32_t* pData = (uint32_t*)&m_pThemeData->BoxBkColor;
115 *pData++ = 0, *pData++ = 0, *pData++ = ArgbEncode(255, 220, 220, 215), 115 *pData++ = 0, *pData++ = 0, *pData++ = ArgbEncode(255, 220, 220, 215),
Tom Sepez 2016/03/29 16:45:31 nit: semicolons.
dsinclair 2016/03/29 19:22:24 Done.
116 *pData++ = ArgbEncode(255, 255, 255, 255), 116 *pData++ = ArgbEncode(255, 255, 255, 255),
117 *pData++ = ArgbEncode(255, 255, 240, 207), 117 *pData++ = ArgbEncode(255, 255, 240, 207),
118 *pData++ = ArgbEncode(255, 248, 179, 48), 118 *pData++ = ArgbEncode(255, 248, 179, 48),
119 *pData++ = ArgbEncode(255, 176, 176, 167), 119 *pData++ = ArgbEncode(255, 176, 176, 167),
120 *pData++ = ArgbEncode(255, 241, 239, 239), 120 *pData++ = ArgbEncode(255, 241, 239, 239),
121 *pData++ = ArgbEncode(255, 255, 255, 255), 121 *pData++ = ArgbEncode(255, 255, 255, 255),
122 *pData++ = ArgbEncode(255, 255, 255, 255), 122 *pData++ = ArgbEncode(255, 255, 255, 255),
123 *pData++ = ArgbEncode(255, 220, 220, 215), 123 *pData++ = ArgbEncode(255, 220, 220, 215),
124 *pData++ = ArgbEncode(255, 255, 255, 255), 124 *pData++ = ArgbEncode(255, 255, 255, 255),
125 *pData++ = ArgbEncode(255, 255, 240, 207), 125 *pData++ = ArgbEncode(255, 255, 240, 207),
126 *pData++ = ArgbEncode(255, 248, 179, 48), 126 *pData++ = ArgbEncode(255, 248, 179, 48),
127 *pData++ = ArgbEncode(255, 176, 176, 167), 127 *pData++ = ArgbEncode(255, 176, 176, 167),
128 *pData++ = ArgbEncode(255, 241, 239, 239), 128 *pData++ = ArgbEncode(255, 241, 239, 239),
129 *pData++ = ArgbEncode(255, 255, 255, 255), 129 *pData++ = ArgbEncode(255, 255, 255, 255),
130 *pData++ = ArgbEncode(255, 255, 255, 255), 130 *pData++ = ArgbEncode(255, 255, 255, 255),
131 *pData++ = ArgbEncode(255, 220, 220, 215), 131 *pData++ = ArgbEncode(255, 220, 220, 215),
132 *pData++ = ArgbEncode(255, 255, 255, 255), 132 *pData++ = ArgbEncode(255, 255, 255, 255),
133 *pData++ = ArgbEncode(255, 255, 240, 207), 133 *pData++ = ArgbEncode(255, 255, 240, 207),
134 *pData++ = ArgbEncode(255, 248, 179, 48), 134 *pData++ = ArgbEncode(255, 248, 179, 48),
135 *pData++ = ArgbEncode(255, 176, 176, 167), 135 *pData++ = ArgbEncode(255, 176, 176, 167),
136 *pData++ = ArgbEncode(255, 241, 239, 239), 136 *pData++ = ArgbEncode(255, 241, 239, 239),
137 *pData++ = ArgbEncode(255, 255, 255, 255), 137 *pData++ = ArgbEncode(255, 255, 255, 255),
138 *pData++ = ArgbEncode(255, 255, 255, 255); 138 *pData++ = ArgbEncode(255, 255, 255, 255);
139 } 139 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698