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

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

Issue 2070583003: Make code compile with clang_use_chrome_plugin (part VI) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: clean up Created 4 years, 6 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 12 matching lines...) Expand all
23 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4) 23 #define FWL_STYLEEXT_DTP_EditHFar (2L << 4)
24 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6) 24 #define FWL_STYLEEXT_DTP_EditVNear (0L << 6)
25 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6) 25 #define FWL_STYLEEXT_DTP_EditVCenter (1L << 6)
26 #define FWL_STYLEEXT_DTP_EditVFar (2L << 6) 26 #define FWL_STYLEEXT_DTP_EditVFar (2L << 6)
27 #define FWL_STYLEEXT_DTP_EditJustified (1L << 8) 27 #define FWL_STYLEEXT_DTP_EditJustified (1L << 8)
28 #define FWL_STYLEEXT_DTP_EditDistributed (2L << 8) 28 #define FWL_STYLEEXT_DTP_EditDistributed (2L << 8)
29 #define FWL_STYLEEXT_DTP_EditHAlignMask (3L << 4) 29 #define FWL_STYLEEXT_DTP_EditHAlignMask (3L << 4)
30 #define FWL_STYLEEXT_DTP_EditVAlignMask (3L << 6) 30 #define FWL_STYLEEXT_DTP_EditVAlignMask (3L << 6)
31 #define FWL_STYLEEXT_DTP_EditHAlignModeMask (3L << 8) 31 #define FWL_STYLEEXT_DTP_EditHAlignModeMask (3L << 8)
32 32
33 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpDropDown, CFWL_EventType::DropDown) 33 FWL_EVENT_DEF(CFWL_Event_DtpDropDown, CFWL_EventType::DropDown)
34 END_FWL_EVENT_DEF 34 FWL_EVENT_FUNCTION_DEF(CFWL_Event_DtpDropDown, CFWL_EventType::DropDown)
35 35
36 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, CFWL_EventType::CloseUp) 36 FWL_EVENT_DEF(CFWL_Event_DtpCloseUp, CFWL_EventType::CloseUp)
37 END_FWL_EVENT_DEF 37 FWL_EVENT_FUNCTION_DEF(CFWL_Event_DtpCloseUp, CFWL_EventType::CloseUp)
38 38
39 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpEditChanged, CFWL_EventType::EditChanged) 39 FWL_EVENT_DEF(CFWL_Event_DtpEditChanged,
40 CFX_WideString m_wsText; 40 CFWL_EventType::EditChanged,
41 END_FWL_EVENT_DEF 41 CFX_WideString m_wsText;)
42 FWL_EVENT_FUNCTION_DEF(CFWL_Event_DtpEditChanged, CFWL_EventType::EditChanged)
42 43
43 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpHoverChanged, CFWL_EventType::HoverChanged) 44 FWL_EVENT_DEF(CFWL_Event_DtpHoverChanged,
44 int32_t hoverday; 45 CFWL_EventType::HoverChanged,
45 END_FWL_EVENT_DEF 46 int32_t hoverday;)
47 FWL_EVENT_FUNCTION_DEF(CFWL_Event_DtpHoverChanged, CFWL_EventType::HoverChanged)
46 48
47 BEGIN_FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged, CFWL_EventType::SelectChanged) 49 FWL_EVENT_DEF(CFWL_Event_DtpSelectChanged,
48 int32_t iYear; 50 CFWL_EventType::SelectChanged,
49 int32_t iMonth; 51 int32_t iYear;
50 int32_t iDay; 52 int32_t iMonth;
51 END_FWL_EVENT_DEF 53 int32_t iDay;)
54 FWL_EVENT_FUNCTION_DEF(CFWL_Event_DtpSelectChanged,
55 CFWL_EventType::SelectChanged)
52 56
53 class IFWL_DateTimePickerDP : public IFWL_DataProvider { 57 class IFWL_DateTimePickerDP : public IFWL_DataProvider {
54 public: 58 public:
55 virtual FWL_Error GetToday(IFWL_Widget* pWidget, 59 virtual FWL_Error GetToday(IFWL_Widget* pWidget,
56 int32_t& iYear, 60 int32_t& iYear,
57 int32_t& iMonth, 61 int32_t& iMonth,
58 int32_t& iDay) = 0; 62 int32_t& iDay) = 0;
59 }; 63 };
60 64
61 class IFWL_DateTimePicker : public IFWL_Widget { 65 class IFWL_DateTimePicker : public IFWL_Widget {
(...skipping 25 matching lines...) Expand all
87 FWL_Error GetBBox(CFX_RectF& rect); 91 FWL_Error GetBBox(CFX_RectF& rect);
88 FWL_Error SetEditLimit(int32_t nLimit); 92 FWL_Error SetEditLimit(int32_t nLimit);
89 FWL_Error ModifyEditStylesEx(uint32_t dwStylesExAdded, 93 FWL_Error ModifyEditStylesEx(uint32_t dwStylesExAdded,
90 uint32_t dwStylesExRemoved); 94 uint32_t dwStylesExRemoved);
91 95
92 protected: 96 protected:
93 IFWL_DateTimePicker(); 97 IFWL_DateTimePicker();
94 }; 98 };
95 99
96 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_ 100 #endif // XFA_FWL_BASEWIDGET_IFWL_DATETIMEPICKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698