blob: d76cc86af079cd4b0bdb01b8d3560bb5480cd158 [file] [log] [blame]
dsinclair447b1f32016-12-08 10:06:32 -08001// Copyright 2016 PDFium Authors. All rights reserved.
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#include "xfa/fwl/cfwl_messagekey.h"
8
9#include <memory>
10
Tom Sepezac3c9dc2019-08-21 21:10:58 +000011CFWL_MessageKey::CFWL_MessageKey(CFWL_Widget* pDstTarget,
Lei Zhang56723582020-06-22 21:55:46 +000012 Type cmd,
Tom Sepezac3c9dc2019-08-21 21:10:58 +000013 uint32_t flags,
14 uint32_t keycode)
Lei Zhang56723582020-06-22 21:55:46 +000015 : CFWL_Message(CFWL_Message::Type::kKey, nullptr, pDstTarget),
Tom Sepezac3c9dc2019-08-21 21:10:58 +000016 m_dwCmd(cmd),
17 m_dwFlags(flags),
18 m_dwKeyCode(keycode) {}
dsinclair447b1f32016-12-08 10:06:32 -080019
Tom Sepez253f1a92019-01-15 21:40:43 +000020CFWL_MessageKey::~CFWL_MessageKey() = default;