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

Side by Side Diff: xfa/fwl/basewidget/ifwl_datetimepicker.h

Issue 1901183002: Remove CFWL_Note. (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 #ifndef XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_
9 9
10 #include "xfa/fwl/core/ifwl_widget.h" 10 #include "xfa/fwl/core/ifwl_widget.h"
(...skipping 20 matching lines...) Expand all
31 #define FWL_STYLEEXT_DTP_EditVAlignMask (3L << 6) 31 #define FWL_STYLEEXT_DTP_EditVAlignMask (3L << 6)
32 #define FWL_STYLEEXT_DTP_EditHAlignModeMask (3L << 8) 32 #define FWL_STYLEEXT_DTP_EditHAlignModeMask (3L << 8)
33 #define FWL_PART_DTP_Border 1 33 #define FWL_PART_DTP_Border 1
34 #define FWL_PART_DTP_Edge 2 34 #define FWL_PART_DTP_Edge 2
35 #define FWL_PART_DTP_Background 3 35 #define FWL_PART_DTP_Background 3
36 #define FWL_PART_DTP_DropDownButton 4 36 #define FWL_PART_DTP_DropDownButton 4
37 #define FWL_PARTSTATE_DTP_Normal (0L << 0) 37 #define FWL_PARTSTATE_DTP_Normal (0L << 0)
38 #define FWL_PARTSTATE_DTP_Hovered (1L << 0) 38 #define FWL_PARTSTATE_DTP_Hovered (1L << 0)
39 #define FWL_PARTSTATE_DTP_Pressed (2L << 0) 39 #define FWL_PARTSTATE_DTP_Pressed (2L << 0)
40 #define FWL_PARTSTATE_DTP_Disabled (3L << 0) 40 #define FWL_PARTSTATE_DTP_Disabled (3L << 0)
41 // TODO(dsinclair): Event hash is hash of string, cleanup. pdfium:474
42 #define FWL_EVTHASH_DTP_DropDown 264728733
43 #define FWL_EVTHASH_DTP_CloseUp 4280973803
44 #define FWL_EVTHASH_DTP_EditChanged 4009610944
45 #define FWL_EVTHASH_DTP_HoverChanged 686674750
46 #define FWL_EVTHASH_DTP_SelectChanged 1589616858
47 41
48 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpDropDown, FWL_EVTHASH_DTP_DropDown) 42 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpDropDown, CFWL_EventType::DropDown)
49 END_FWL_EVENT_DEF 43 END_FWL_EVENT_DEF
50 44
51 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, FWL_EVTHASH_DTP_CloseUp) 45 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, CFWL_EventType::CloseUp)
52 END_FWL_EVENT_DEF 46 END_FWL_EVENT_DEF
53 47
54 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, FWL_EVTHASH_DTP_EditChanged) 48 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, CFWL_EventType::EditChanged)
55 CFX_WideString m_wsText; 49 CFX_WideString m_wsText;
56 END_FWL_EVENT_DEF 50 END_FWL_EVENT_DEF
57 51
58 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpHoverChanged, FWL_EVTHASH_DTP_HoverChanged) 52 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpHoverChanged, CFWL_EventType::HoverChanged)
59 int32_t hoverday; 53 int32_t hoverday;
60 END_FWL_EVENT_DEF 54 END_FWL_EVENT_DEF
61 55
62 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, FWL_EVTHASH_DTP_SelectChanged) 56 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, CFWL_EventType::SelectChanged)
63 int32_t iYear; 57 int32_t iYear;
64 int32_t iMonth; 58 int32_t iMonth;
65 int32_t iDay; 59 int32_t iDay;
66 END_FWL_EVENT_DEF 60 END_FWL_EVENT_DEF
67 61
68 class IFWL_DateTimePickerDP : public IFWL_DataProvider { 62 class IFWL_DateTimePickerDP : public IFWL_DataProvider {
69 public: 63 public:
70 virtual FWL_ERR GetToday(IFWL_Widget* pWidget, 64 virtual FWL_ERR GetToday(IFWL_Widget* pWidget,
71 int32_t& iYear, 65 int32_t& iYear,
72 int32_t& iMonth, 66 int32_t& iMonth,
(...skipping 29 matching lines...) Expand all
102 FWL_ERR GetBBox(CFX_RectF& rect); 96 FWL_ERR GetBBox(CFX_RectF& rect);
103 FWL_ERR SetEditLimit(int32_t nLimit); 97 FWL_ERR SetEditLimit(int32_t nLimit);
104 FWL_ERR ModifyEditStylesEx(uint32_t dwStylesExAdded, 98 FWL_ERR ModifyEditStylesEx(uint32_t dwStylesExAdded,
105 uint32_t dwStylesExRemoved); 99 uint32_t dwStylesExRemoved);
106 100
107 protected: 101 protected:
108 IFWL_DateTimePicker(); 102 IFWL_DateTimePicker();
109 }; 103 };
110 104
111 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ 105 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698