1 // 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
11 #include "third_party/base/ptr_util.h"
12
CFWL_MessageKey(CFWL_Widget * pDstTarget,FWL_KeyCommand cmd,uint32_t flags,uint32_t keycode)13 CFWL_MessageKey::CFWL_MessageKey(CFWL_Widget* pDstTarget,
14 FWL_KeyCommand cmd,
15 uint32_t flags,
16 uint32_t keycode)
17 : CFWL_Message(CFWL_Message::Type::Key, nullptr, pDstTarget),
18 m_dwCmd(cmd),
19 m_dwFlags(flags),
20 m_dwKeyCode(keycode) {}
21
22 CFWL_MessageKey::~CFWL_MessageKey() = default;
23