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

Side by Side Diff: xfa/fwl/cfwl_datetimepicker.h

Issue 2559173002: Move xfa/fwl/core to xfa/fwl. (Closed)
Patch Set: 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/cfwl_datetimeedit.cpp ('k') | xfa/fwl/cfwl_datetimepicker.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 #ifndef XFA_FWL_CORE_CFWL_DATETIMEPICKER_H_ 7 #ifndef XFA_FWL_CFWL_DATETIMEPICKER_H_
8 #define XFA_FWL_CORE_CFWL_DATETIMEPICKER_H_ 8 #define XFA_FWL_CFWL_DATETIMEPICKER_H_
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "xfa/fwl/core/cfwl_datetimeedit.h" 12 #include "xfa/fwl/cfwl_datetimeedit.h"
13 #include "xfa/fwl/core/cfwl_event.h" 13 #include "xfa/fwl/cfwl_event.h"
14 #include "xfa/fwl/core/cfwl_monthcalendar.h" 14 #include "xfa/fwl/cfwl_monthcalendar.h"
15 #include "xfa/fwl/core/cfwl_widget.h" 15 #include "xfa/fwl/cfwl_widget.h"
16 #include "xfa/fwl/core/cfwl_widgetproperties.h" 16 #include "xfa/fwl/cfwl_widgetproperties.h"
17 17
18 #define FWL_STYLEEXT_DTP_AllowEdit (1L << 0) 18 #define FWL_STYLEEXT_DTP_AllowEdit (1L << 0)
19 #define FWL_STYLEEXT_DTP_LongDateFormat (0L << 1) 19 #define FWL_STYLEEXT_DTP_LongDateFormat (0L << 1)
20 #define FWL_STYLEEXT_DTP_ShortDateFormat (1L << 1) 20 #define FWL_STYLEEXT_DTP_ShortDateFormat (1L << 1)
21 #define FWL_STYLEEXT_DTP_TimeFormat (2L << 1) 21 #define FWL_STYLEEXT_DTP_TimeFormat (2L << 1)
22 #define FWL_STYLEEXT_DTP_Spin (1L << 3) 22 #define FWL_STYLEEXT_DTP_Spin (1L << 3)
23 #define FWL_STYLEEXT_DTP_EditHNear (0L << 4) 23 #define FWL_STYLEEXT_DTP_EditHNear (0L << 4)
24 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4) 24 #define FWL_STYLEEXT_DTP_EditHCenter (1L << 4)
25 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4) 25 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4)
26 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6) 26 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void DrawDropDownButton(CFX_Graphics* pGraphics, 75 void DrawDropDownButton(CFX_Graphics* pGraphics,
76 IFWL_ThemeProvider* pTheme, 76 IFWL_ThemeProvider* pTheme,
77 const CFX_Matrix* pMatrix); 77 const CFX_Matrix* pMatrix);
78 void FormatDateString(int32_t iYear, 78 void FormatDateString(int32_t iYear,
79 int32_t iMonth, 79 int32_t iMonth,
80 int32_t iDay, 80 int32_t iDay,
81 CFX_WideString& wsText); 81 CFX_WideString& wsText);
82 void ResetEditAlignment(); 82 void ResetEditAlignment();
83 void InitProxyForm(); 83 void InitProxyForm();
84 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); 84 void OnFocusChanged(CFWL_Message* pMsg, bool bSet);
85 void OnLButtonDown(CFWL_MsgMouse* pMsg); 85 void OnLButtonDown(CFWL_MessageMouse* pMsg);
86 void OnLButtonUp(CFWL_MsgMouse* pMsg); 86 void OnLButtonUp(CFWL_MessageMouse* pMsg);
87 void OnMouseMove(CFWL_MsgMouse* pMsg); 87 void OnMouseMove(CFWL_MessageMouse* pMsg);
88 void OnMouseLeave(CFWL_MsgMouse* pMsg); 88 void OnMouseLeave(CFWL_MessageMouse* pMsg);
89 89
90 bool DisForm_IsMonthCalendarVisible() const; 90 bool DisForm_IsMonthCalendarVisible() const;
91 void DisForm_ShowMonthCalendar(bool bActivate); 91 void DisForm_ShowMonthCalendar(bool bActivate);
92 FWL_WidgetHit DisForm_HitTest(FX_FLOAT fx, FX_FLOAT fy) const; 92 FWL_WidgetHit DisForm_HitTest(FX_FLOAT fx, FX_FLOAT fy) const;
93 bool DisForm_IsNeedShowButton() const; 93 bool DisForm_IsNeedShowButton() const;
94 void DisForm_Update(); 94 void DisForm_Update();
95 void DisForm_GetBBox(CFX_RectF& rect) const; 95 void DisForm_GetBBox(CFX_RectF& rect) const;
96 void DisForm_DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix); 96 void DisForm_DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix);
97 void DisForm_OnFocusChanged(CFWL_Message* pMsg, bool bSet); 97 void DisForm_OnFocusChanged(CFWL_Message* pMsg, bool bSet);
98 98
99 CFX_RectF m_rtBtn; 99 CFX_RectF m_rtBtn;
100 CFX_RectF m_rtClient; 100 CFX_RectF m_rtClient;
101 int32_t m_iBtnState; 101 int32_t m_iBtnState;
102 int32_t m_iYear; 102 int32_t m_iYear;
103 int32_t m_iMonth; 103 int32_t m_iMonth;
104 int32_t m_iDay; 104 int32_t m_iDay;
105 bool m_bLBtnDown; 105 bool m_bLBtnDown;
106 std::unique_ptr<CFWL_DateTimeEdit> m_pEdit; 106 std::unique_ptr<CFWL_DateTimeEdit> m_pEdit;
107 std::unique_ptr<CFWL_MonthCalendar> m_pMonthCal; 107 std::unique_ptr<CFWL_MonthCalendar> m_pMonthCal;
108 std::unique_ptr<CFWL_FormProxy> m_pForm; 108 std::unique_ptr<CFWL_FormProxy> m_pForm;
109 FX_FLOAT m_fBtn; 109 FX_FLOAT m_fBtn;
110 }; 110 };
111 111
112 #endif // XFA_FWL_CORE_CFWL_DATETIMEPICKER_H_ 112 #endif // XFA_FWL_CFWL_DATETIMEPICKER_H_
OLDNEW
« no previous file with comments | « xfa/fwl/cfwl_datetimeedit.cpp ('k') | xfa/fwl/cfwl_datetimepicker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698