Chromium Code Reviews| Index: xfa/fxfa/app/cxfa_ffcheckbuttondelegate.h |
| diff --git a/xfa/fxfa/app/cxfa_ffcheckbuttondelegate.h b/xfa/fxfa/app/cxfa_ffcheckbuttondelegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d4a340b2d9f6b99fbdeaa9ca45e67c3313c0eba9 |
| --- /dev/null |
| +++ b/xfa/fxfa/app/cxfa_ffcheckbuttondelegate.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2016 PDFium Authors. All rights reserved. |
|
Tom Sepez
2016/11/01 20:54:04
rather than adding all these tiny files, how about
dsinclair
2016/11/01 20:58:10
Changing IFWL_WidgetDelegate to IFWL_Widget::Deleg
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| + |
| +#ifndef XFA_FXFA_APP_CXFA_FFCHECKBUTTONDELEGATE_H_ |
| +#define XFA_FXFA_APP_CXFA_FFCHECKBUTTONDELEGATE_H_ |
| + |
| +#include "core/fxcrt/fx_coordinates.h" |
| +#include "xfa/fwl/core/cfwl_event.h" |
| +#include "xfa/fwl/core/cfwl_message.h" |
| +#include "xfa/fxfa/app/cxfa_fffielddelegate.h" |
| +#include "xfa/fxfa/app/xfa_ffcheckbutton.h" |
| +#include "xfa/fxfa/xfa_ffwidget.h" |
| +#include "xfa/fxgraphics/cfx_graphics.h" |
| + |
| +class CXFA_FFCheckButtonDelegate : public CXFA_FFFieldDelegate { |
| + public: |
| + CXFA_FFCheckButtonDelegate(std::unique_ptr<IFWL_WidgetDelegate> pDelegate, |
| + CXFA_FFCheckButton* const pWidget); |
| + ~CXFA_FFCheckButtonDelegate() override; |
| + |
| + // CXFA_FFFieldDelegate. |
| + void OnProcessMessage(CFWL_Message* pMessage) override; |
| + void OnProcessEvent(CFWL_Event* pEvent) override; |
| + void OnDrawWidget(CFX_Graphics* pGraphics, |
| + const CFX_Matrix* pMatrix) override; |
| +}; |
| + |
| +#endif // XFA_FXFA_APP_CXFA_FFCHECKBUTTONDELEGATE_H_ |