aboutsummaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_eventselectchanged.cpp
blob: e385a9c1cb7228a03c02c80c96a42e6c0e6346d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright 2016 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#include "xfa/fwl/cfwl_eventselectchanged.h"

CFWL_EventSelectChanged::CFWL_EventSelectChanged(CFWL_Widget* pSrcTarget,
                                                 bool bLButtonUp)
    : CFWL_Event(CFWL_Event::Type::SelectChanged, pSrcTarget),
      m_bLButtonUp(bLButtonUp),
      m_iYear(-1),
      m_iMonth(-1),
      m_iDay(-1) {}

CFWL_EventSelectChanged::CFWL_EventSelectChanged(CFWL_Widget* pSrcTarget,
                                                 int32_t iYear,
                                                 int32_t iMonth,
                                                 int32_t iDay)
    : CFWL_Event(CFWL_Event::Type::SelectChanged, pSrcTarget),
      m_bLButtonUp(false),
      m_iYear(iYear),
      m_iMonth(iMonth),
      m_iDay(iDay) {}

CFWL_EventSelectChanged::~CFWL_EventSelectChanged() = default;