Dan Sinclair | 398a43d | 2016-03-23 15:51:01 -0400 | [diff] [blame] | 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 | |
dsinclair | 447b1f3 | 2016-12-08 10:06:32 -0800 | [diff] [blame] | 7 | #ifndef XFA_FWL_IFWL_WIDGETDELEGATE_H_ |
| 8 | #define XFA_FWL_IFWL_WIDGETDELEGATE_H_ |
Dan Sinclair | 398a43d | 2016-03-23 15:51:01 -0400 | [diff] [blame] | 9 | |
dsinclair | c777f48 | 2016-05-04 17:57:03 -0700 | [diff] [blame] | 10 | #include <stdint.h> |
| 11 | |
Dan Sinclair | 398a43d | 2016-03-23 15:51:01 -0400 | [diff] [blame] | 12 | class CFWL_Event; |
| 13 | class CFWL_Message; |
Dan Sinclair | 2b918c8 | 2017-07-13 14:47:10 -0400 | [diff] [blame] | 14 | class CXFA_Graphics; |
Dan Sinclair | 398a43d | 2016-03-23 15:51:01 -0400 | [diff] [blame] | 15 | class CFX_Matrix; |
| 16 | |
| 17 | class IFWL_WidgetDelegate { |
| 18 | public: |
Tom Sepez | 39cf6a7 | 2018-10-04 23:33:30 +0000 | [diff] [blame] | 19 | virtual ~IFWL_WidgetDelegate() = default; |
dsinclair | 2085538 | 2016-10-31 07:29:34 -0700 | [diff] [blame] | 20 | |
dsinclair | c777f48 | 2016-05-04 17:57:03 -0700 | [diff] [blame] | 21 | virtual void OnProcessMessage(CFWL_Message* pMessage) = 0; |
| 22 | virtual void OnProcessEvent(CFWL_Event* pEvent) = 0; |
Dan Sinclair | 2b918c8 | 2017-07-13 14:47:10 -0400 | [diff] [blame] | 23 | virtual void OnDrawWidget(CXFA_Graphics* pGraphics, |
Lei Zhang | 4b47214 | 2017-08-17 14:30:08 -0700 | [diff] [blame] | 24 | const CFX_Matrix& matrix) = 0; |
Dan Sinclair | 398a43d | 2016-03-23 15:51:01 -0400 | [diff] [blame] | 25 | }; |
| 26 | |
dsinclair | 447b1f3 | 2016-12-08 10:06:32 -0800 | [diff] [blame] | 27 | #endif // XFA_FWL_IFWL_WIDGETDELEGATE_H_ |