blob: 17b89339744ec9c5f2bd33486ad764350a05e092 [file] [log] [blame]
Dan Sinclair398a43d2016-03-23 15:51:01 -04001// 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
dsinclair447b1f32016-12-08 10:06:32 -08007#ifndef XFA_FWL_IFWL_WIDGETDELEGATE_H_
8#define XFA_FWL_IFWL_WIDGETDELEGATE_H_
Dan Sinclair398a43d2016-03-23 15:51:01 -04009
dsinclairc777f482016-05-04 17:57:03 -070010#include <stdint.h>
11
Dan Sinclair398a43d2016-03-23 15:51:01 -040012class CFWL_Event;
13class CFWL_Message;
Dan Sinclair2b918c82017-07-13 14:47:10 -040014class CXFA_Graphics;
Dan Sinclair398a43d2016-03-23 15:51:01 -040015class CFX_Matrix;
16
17class IFWL_WidgetDelegate {
18 public:
Tom Sepez39cf6a72018-10-04 23:33:30 +000019 virtual ~IFWL_WidgetDelegate() = default;
dsinclair20855382016-10-31 07:29:34 -070020
dsinclairc777f482016-05-04 17:57:03 -070021 virtual void OnProcessMessage(CFWL_Message* pMessage) = 0;
22 virtual void OnProcessEvent(CFWL_Event* pEvent) = 0;
Dan Sinclair2b918c82017-07-13 14:47:10 -040023 virtual void OnDrawWidget(CXFA_Graphics* pGraphics,
Lei Zhang4b472142017-08-17 14:30:08 -070024 const CFX_Matrix& matrix) = 0;
Dan Sinclair398a43d2016-03-23 15:51:01 -040025};
26
dsinclair447b1f32016-12-08 10:06:32 -080027#endif // XFA_FWL_IFWL_WIDGETDELEGATE_H_