• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 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 #ifndef XFA_FXFA_CXFA_FWLADAPTERWIDGETMGR_H_
8 #define XFA_FXFA_CXFA_FWLADAPTERWIDGETMGR_H_
9 
10 #include "core/fxcrt/fx_coordinates.h"
11 #include "core/fxcrt/fx_system.h"
12 #include "xfa/fwl/cfwl_widgetmgr.h"
13 
14 class CFWL_Widget;
15 
16 class CXFA_FWLAdapterWidgetMgr : public CFWL_WidgetMgr::AdapterIface {
17  public:
18   CXFA_FWLAdapterWidgetMgr();
19   ~CXFA_FWLAdapterWidgetMgr() override;
20 
21   void RepaintWidget(CFWL_Widget* pWidget) override;
22   bool GetPopupPos(CFWL_Widget* pWidget,
23                    float fMinHeight,
24                    float fMaxHeight,
25                    const CFX_RectF& rtAnchor,
26                    CFX_RectF* pPopupRect) override;
27 };
28 
29 #endif  // XFA_FXFA_CXFA_FWLADAPTERWIDGETMGR_H_
30