xref: /aosp_15_r20/external/pdfium/xfa/fwl/theme/cfwl_datetimepickertp.cpp (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1*3ac0a46fSAndroid Build Coastguard Worker // Copyright 2014 The PDFium Authors
2*3ac0a46fSAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
3*3ac0a46fSAndroid Build Coastguard Worker // found in the LICENSE file.
4*3ac0a46fSAndroid Build Coastguard Worker 
5*3ac0a46fSAndroid Build Coastguard Worker // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6*3ac0a46fSAndroid Build Coastguard Worker 
7*3ac0a46fSAndroid Build Coastguard Worker #include "xfa/fwl/theme/cfwl_datetimepickertp.h"
8*3ac0a46fSAndroid Build Coastguard Worker 
9*3ac0a46fSAndroid Build Coastguard Worker #include "xfa/fwl/cfwl_datetimepicker.h"
10*3ac0a46fSAndroid Build Coastguard Worker #include "xfa/fwl/cfwl_themebackground.h"
11*3ac0a46fSAndroid Build Coastguard Worker 
12*3ac0a46fSAndroid Build Coastguard Worker CFWL_DateTimePickerTP::CFWL_DateTimePickerTP() = default;
13*3ac0a46fSAndroid Build Coastguard Worker 
14*3ac0a46fSAndroid Build Coastguard Worker CFWL_DateTimePickerTP::~CFWL_DateTimePickerTP() = default;
15*3ac0a46fSAndroid Build Coastguard Worker 
DrawBackground(const CFWL_ThemeBackground & pParams)16*3ac0a46fSAndroid Build Coastguard Worker void CFWL_DateTimePickerTP::DrawBackground(
17*3ac0a46fSAndroid Build Coastguard Worker     const CFWL_ThemeBackground& pParams) {
18*3ac0a46fSAndroid Build Coastguard Worker   switch (pParams.GetPart()) {
19*3ac0a46fSAndroid Build Coastguard Worker     case CFWL_ThemePart::Part::kBorder:
20*3ac0a46fSAndroid Build Coastguard Worker       DrawBorder(pParams.GetGraphics(), pParams.m_PartRect, pParams.m_matrix);
21*3ac0a46fSAndroid Build Coastguard Worker       break;
22*3ac0a46fSAndroid Build Coastguard Worker     case CFWL_ThemePart::Part::kDropDownButton:
23*3ac0a46fSAndroid Build Coastguard Worker       DrawArrowBtn(pParams.GetGraphics(), pParams.m_PartRect,
24*3ac0a46fSAndroid Build Coastguard Worker                    FWLTHEME_DIRECTION::kDown, pParams.GetThemeState(),
25*3ac0a46fSAndroid Build Coastguard Worker                    pParams.m_matrix);
26*3ac0a46fSAndroid Build Coastguard Worker       break;
27*3ac0a46fSAndroid Build Coastguard Worker     default:
28*3ac0a46fSAndroid Build Coastguard Worker       break;
29*3ac0a46fSAndroid Build Coastguard Worker   }
30*3ac0a46fSAndroid Build Coastguard Worker }
31