14d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Copyright 2016 PDFium Authors. All rights reserved. 24d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Use of this source code is governed by a BSD-style license that can be 34d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// found in the LICENSE file. 44d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 54d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 64d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 74d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#ifndef XFA_FWL_CFWL_MESSAGE_H_ 84d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#define XFA_FWL_CFWL_MESSAGE_H_ 94d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 104d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include <memory> 114d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 124d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include "core/fxcrt/fx_basic.h" 134d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include "core/fxcrt/fx_string.h" 144d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#include "core/fxcrt/fx_system.h" 154d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 164d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmannclass CFWL_Widget; 174d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 184d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmannclass CFWL_Message { 194d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann public: 204d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann enum class Type { Key, KillFocus, Mouse, MouseWheel, SetFocus }; 214d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 224d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann explicit CFWL_Message(Type type); 234d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann CFWL_Message(Type type, CFWL_Widget* pSrcTarget); 244d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann CFWL_Message(Type type, CFWL_Widget* pSrcTarget, CFWL_Widget* pDstTarget); 254d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann virtual ~CFWL_Message(); 264d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 274d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann virtual std::unique_ptr<CFWL_Message> Clone(); 284d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann Type GetType() const { return m_type; } 294d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 304d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann CFWL_Widget* m_pSrcTarget; 314d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann CFWL_Widget* m_pDstTarget; 324d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 334d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann private: 344d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann Type m_type; 354d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann}; 364d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann 374d3acf4ec42bf6e838f9060103aff98fbf170794Philip P. Moltmann#endif // XFA_FWL_CFWL_MESSAGE_H_ 38