1 // Copyright 2016 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FWL_CFWL_EVENTSELECTCHANGED_H_ 8 #define XFA_FWL_CFWL_EVENTSELECTCHANGED_H_ 9 10 #include <stdint.h> 11 12 #include "xfa/fwl/cfwl_event.h" 13 14 namespace pdfium { 15 16 class CFWL_EventSelectChanged final : public CFWL_Event { 17 public: 18 CFWL_EventSelectChanged(CFWL_Widget* pSrcTarget, bool bLButtonUp); 19 CFWL_EventSelectChanged(CFWL_Widget* pSrcTarget, 20 int32_t iYear, 21 int32_t iMonth, 22 int32_t iDay); 23 ~CFWL_EventSelectChanged() override; 24 GetLButtonUp()25 bool GetLButtonUp() const { return m_bLButtonUp; } GetYear()26 int32_t GetYear() const { return m_iYear; } GetMonth()27 int32_t GetMonth() const { return m_iMonth; } GetDay()28 int32_t GetDay() const { return m_iDay; } 29 30 protected: 31 // Used by ComboBox. 32 const bool m_bLButtonUp; 33 34 // Used by DateTimePIcker 35 const int32_t m_iYear; 36 const int32_t m_iMonth; 37 const int32_t m_iDay; 38 }; 39 40 } // namespace pdfium 41 42 // TODO(crbug.com/42271761): Remove. 43 using pdfium::CFWL_EventSelectChanged; 44 45 #endif // XFA_FWL_CFWL_EVENTSELECTCHANGED_H_ 46